public static class Atomic.Boolean
A boolean
record that may be updated atomically.
Constructor and Description |
---|
Boolean() |
Modifier and Type | Method and Description |
---|---|
boolean |
compareAndSet()
Atomically sets the value to the given updated value if the current value
== the expected value. |
boolean |
get()
Returns the current value.
|
boolean |
getAndSet()
Atomically sets to the given value and returns the previous value.
|
long |
getRecid() |
void |
set()
Unconditionally sets to the given value.
|
java.lang.String |
toString()
Returns the String representation of the current value.
|
public Store store
public long recid
public long getRecid()
public boolean get()
Returns the current value.
public boolean compareAndSet()
Atomically sets the value to the given updated value if the current value ==
the expected value.
public void set()
Unconditionally sets to the given value.
public boolean getAndSet()
Atomically sets to the given value and returns the previous value.
public java.lang.String toString()
Returns the String representation of the current value.