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