public class BasicWatchedInt extends AbstractWatchedValue<java.lang.Integer> implements WatchedInt
| Constructor and Description |
|---|
BasicWatchedInt(int initialValue) |
| Modifier and Type | Method and Description |
|---|---|
void |
and(int value) |
int |
get() |
WatchedInt |
guard(java.util.function.IntPredicate test) |
WatchedInt |
lock() |
void |
or(int value) |
void |
set(int value) |
onBeforeChange, onChanged, whenChanged, whenGoingToChangeclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitofwhenChanged, whenGoingToChangepublic int get()
get in interface WatchedIntpublic void set(int value)
set in interface WatchedIntpublic void or(int value)
public void and(int value)
public WatchedInt lock()
lock in interface WatchedIntlock in interface WatchedValue<java.lang.Integer>public WatchedInt guard(java.util.function.IntPredicate test)
guard in interface WatchedInt