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