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