public class Flag
extends java.lang.Object
Changed in 1.1.0 (previously `MutableBool`)
create()
,
synchronizedFlag()
Constructor and Description |
---|
Flag() |
Modifier and Type | Method and Description |
---|---|
static Flag |
create()
Factory method to create
Flag . |
boolean |
isSet() |
void |
mark()
Marks current instance.
|
static Flag |
synchronizedFlag() |
java.lang.String |
toString() |
public static Flag create()
Flag
. Not thread safe. If you need synchronized Flag
you can use synchronizedFlag()
public static Flag synchronizedFlag()
public void mark()
isSet()
public boolean isSet()
mark()
was calledpublic java.lang.String toString()
toString
in class java.lang.Object