| 1 |
public int addAndGet(int i, int delta) |
Atomically adds the given value to the indexed i element. |
| 2 |
public boolean compareAndSet(int i, int expect, int update) |
If the current value is == expected, the i element atom at the location is set to the given update value. |
| 3 |
public int decrementAndGet(int i) |
ithe element at the index is atomic and self-decreasing 1 . |
| 4 |
public int get(int i) |
Gets i The current value of the position. |
| 5 |
public int getAndAdd(int i, int delta) |
Atomically adds the given value to the indexed i element. |
| 6 |
public int getAndDecrement(int i) |
ithe element at the index is atomically and is self 1 -decrement, and the old value is returned. |
| 7 |
public int getAndIncrement(int i) |
isets the atom of the element at the location to the given value and returns the old value. |
| 8 |
public int getAndSet(int i, int newValue) |
isets the atom of the element at the location to the given value and returns the old value. |
| 9 |
public int incrementAndGet(int i) |
Atomically increases the element at the index i . |
| 10 |
public void lazySet(int i, int newValue) |
Finally, the i element at the location is set to the given value. |
| 11 |
public int length() |
Returns the length of the array. |
| 12 |
public void set(int i, int newValue) |
isets the element at the location to the given value. |
| 13 |
public String toString() |
Returns the representation of the current value of the array String . |
| 14 |
public boolean weakCompareAndSet(int i, int expect, int update) |
If the current value is == expected, the i element atom at the location is set to the given update value. |