Method Summary |
|
final public long | addAndGet(long delta) Atomically adds the given value to the current value. |
final public boolean | compareAndSet(long expect, long update) Atomically sets 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 decrements by one the current value. |
public double | doubleValue() |
public float | floatValue() |
final public long | get() Gets the current value. |
final public long | getAndAdd(long delta) Atomically adds the given value to the current value. |
final public long | getAndDecrement() Atomically decrements by one the current value. |
final public long | getAndIncrement() Atomically increments by one the current value. |
final public long | getAndSet(long newValue) Atomically sets to the given value and returns the old value. |
final public long | incrementAndGet() Atomically increments by one the current value. |
public int | intValue() |
final public void | lazySet(long newValue) Eventually sets to the given value. |
public long | longValue() |
final public void | set(long newValue) Sets to the given value. |
public String | toString() Returns the String representation of the current value. |
final public boolean | weakCompareAndSet(long expect, long update) Atomically sets the value to the given updated value
if the current value
== the expected value. |