samples/reentrant/src/org/apidesign/reentrant/CriticalSection.java
author Jaroslav Tulach <jaroslav.tulach@apidesign.org>
Thu, 30 Oct 2014 21:30:10 +0100
changeset 409 40cabcdcd2be
permissions -rw-r--r--
Updating to NBMs from NetBeans 8.0.1 as some of them are required to run on JDK8
jtulach@111
     1
package org.apidesign.reentrant;
jtulach@111
     2
jtulach@111
     3
import java.util.Collection;
jtulach@111
     4
jtulach@111
     5
public interface CriticalSection<T extends Comparable<T>> {
jtulach@111
     6
    
jtulach@111
     7
    public void assignPilot(T pilot);
jtulach@111
     8
    public int sumBigger(Collection<T> args);
jtulach@111
     9
    public int getCount();
jtulach@111
    10
}