Searched defs:Condition (Results 1 - 2 of 2) sorted by relevance

/libcore/ojluni/src/main/java/java/util/concurrent/locks/
H A DCondition.java42 * {@code Condition} factors out the {@code Object} monitor
48 * and statements, a {@code Condition} replaces the use of the Object
61 * <p>A {@code Condition} instance is intrinsically bound to a lock.
62 * To obtain a {@code Condition} instance for a particular {@link Lock}
74 * {@link Condition} instances.
78 * final Condition notFull = <b>lock.newCondition(); </b>
79 * final Condition notEmpty = <b>lock.newCondition(); </b>
119 * <p>A {@code Condition} implementation can provide behavior and semantics
127 * <p>Note that {@code Condition} instances are just normal objects and can
131 * Acquiring the monitor lock of a {@code Condition} instanc
180 public interface Condition { interface
[all...]
/libcore/luni/src/test/java/libcore/java/lang/
H A DLambdaImplementationTest.java57 interface Condition<T> { interface in class:LambdaImplementationTest
62 Condition<String> c = String::isEmpty;
65 assertLambdaImplementsInterfaces(c, Condition.class);
66 assertLambdaMethodCharacteristics(c, Condition.class);
78 Method interfaceCallMethod = Condition.class.getDeclaredMethod(

Completed in 261 milliseconds