public class WaitableBoolean extends AbstractSynchronizedVariable
lock| Constructor and Description |
|---|
WaitableBoolean(boolean initialValue) |
WaitableBoolean(boolean initialValue,
Object lock) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
and(boolean b) |
boolean |
compareAndSet(boolean assumedValue,
boolean newValue) |
int |
compareTo(boolean other) |
int |
compareTo(Object other) |
int |
compareTo(WaitableBoolean other) |
boolean |
complement() |
boolean |
equals(Object other) |
boolean |
get() |
int |
hashCode() |
boolean |
or(boolean b) |
boolean |
set(boolean newValue) |
String |
toString() |
void |
whenEqual(boolean condition,
Runnable action) |
void |
whenFalse(Runnable action) |
void |
whenNotEqual(boolean condition,
Runnable action) |
void |
whenTrue(Runnable action) |
boolean |
xor(boolean b) |
execute, getLockpublic WaitableBoolean(boolean initialValue)
public WaitableBoolean(boolean initialValue,
Object lock)
public int compareTo(boolean other)
public int compareTo(WaitableBoolean other)
public int compareTo(Object other)
public boolean get()
public boolean set(boolean newValue)
public boolean compareAndSet(boolean assumedValue,
boolean newValue)
public boolean complement()
public boolean and(boolean b)
public boolean or(boolean b)
public boolean xor(boolean b)
public void whenTrue(Runnable action) throws InterruptedException
InterruptedExceptionpublic void whenFalse(Runnable action) throws InterruptedException
InterruptedExceptionpublic void whenEqual(boolean condition,
Runnable action)
throws InterruptedException
InterruptedExceptionpublic void whenNotEqual(boolean condition,
Runnable action)
throws InterruptedException
InterruptedExceptionCopyright © 2003–2015 MuleSoft, Inc.. All rights reserved.