Package com.xinapse.util
Class CancellableThread.Flag
java.lang.Object
com.xinapse.util.CancellableThread.Flag
- Enclosing class:
- CancellableThread
A flag that can be set to indicate that a cancellation has taken place.
-
Constructor Summary
-
Method Summary
-
Constructor Details
-
Flag
public Flag()
-
-
Method Details
-
set
public void set()Set the flag. -
isSet
public boolean isSet()Test whether the flag has been set.- Returns:
true
if the flag has been set;false
otherwise.
-