| java.lang.Object EDU.oswego.cs.dl.util.concurrent.SynchronizedVariable EDU.oswego.cs.dl.util.concurrent.SynchronizedChar EDU.oswego.cs.dl.util.concurrent.WaitableChar
Constructor Summary | |
public | WaitableChar(char initialValue) Make a new WaitableChar with the given initial value,
and using its own internal lock. | public | WaitableChar(char initialValue, Object lock) Make a new WaitableChar with the given initial value,
and using the supplied lock. |
Method Summary | |
public char | add(char amount) | public boolean | commit(char assumedValue, char newValue) | public char | divide(char factor) | public char | multiply(char factor) | public char | set(char newValue) | public char | subtract(char amount) | public void | whenEqual(char c, Runnable action) Wait until value equals c, then run action if nonnull. | public void | whenGreater(char c, Runnable action) wait until value greater than c, then run action if nonnull. | public void | whenGreaterEqual(char c, Runnable action) wait until value greater than or equal to c, then run action if nonnull. | public void | whenLess(char c, Runnable action) wait until value less than c, then run action if nonnull. | public void | whenLessEqual(char c, Runnable action) wait until value less than or equal to c, then run action if nonnull. | public void | whenNotEqual(char c, Runnable action) wait until value not equal to c, then run action if nonnull. |
WaitableChar | public WaitableChar(char initialValue)(Code) | | Make a new WaitableChar with the given initial value,
and using its own internal lock.
|
WaitableChar | public WaitableChar(char initialValue, Object lock)(Code) | | Make a new WaitableChar with the given initial value,
and using the supplied lock.
|
add | public char add(char amount)(Code) | | |
commit | public boolean commit(char assumedValue, char newValue)(Code) | | |
divide | public char divide(char factor)(Code) | | |
multiply | public char multiply(char factor)(Code) | | |
set | public char set(char newValue)(Code) | | |
subtract | public char subtract(char amount)(Code) | | |
whenEqual | public void whenEqual(char c, Runnable action) throws InterruptedException(Code) | | Wait until value equals c, then run action if nonnull.
The action is run with the synchronization lock held.
|
whenGreater | public void whenGreater(char c, Runnable action) throws InterruptedException(Code) | | wait until value greater than c, then run action if nonnull.
The action is run with the synchronization lock held.
|
whenGreaterEqual | public void whenGreaterEqual(char c, Runnable action) throws InterruptedException(Code) | | wait until value greater than or equal to c, then run action if nonnull.
The action is run with the synchronization lock held.
|
whenLess | public void whenLess(char c, Runnable action) throws InterruptedException(Code) | | wait until value less than c, then run action if nonnull.
The action is run with the synchronization lock held.
|
whenLessEqual | public void whenLessEqual(char c, Runnable action) throws InterruptedException(Code) | | wait until value less than or equal to c, then run action if nonnull.
The action is run with the synchronization lock held.
|
whenNotEqual | public void whenNotEqual(char c, Runnable action) throws InterruptedException(Code) | | wait until value not equal to c, then run action if nonnull.
The action is run with the synchronization lock held.
|
Fields inherited from EDU.oswego.cs.dl.util.concurrent.SynchronizedChar | protected char value_(Code)(Java Doc)
|
Fields inherited from EDU.oswego.cs.dl.util.concurrent.SynchronizedVariable | final protected Object lock_(Code)(Java Doc)
|
|
|