Method Summary |
|
final public long | addAndGet(long delta) Atomically add the given value to current value. |
final public boolean | compareAndSet(long expect, long update) Atomically set the value to the given updated value
if the current value == the expected value.
Parameters: expect - the expected value Parameters: update - the new value true if successful. |
final public long | decrementAndGet() Atomically decrement by one the current value. |
public double | doubleValue() |
public float | floatValue() |
final public long | get() Get the current value. |
final public long | getAndAdd(long delta) Atomically add the given value to current value. |
final public long | getAndDecrement() Atomically decrement by one the current value. |
final public long | getAndIncrement() Atomically increment by one the current value. |
final public long | getAndSet(long newValue) Set to the give value and return the old value. |
final public long | incrementAndGet() Atomically increment by one the current value. |
public int | intValue() |
public long | longValue() |
final public void | set(long newValue) Set to the given value. |
public String | toString() Returns the String representation of the current value. |
final public boolean | weakCompareAndSet(long expect, long update) Atomically set the value to the given updated value
if the current value == the expected value. |