Example usage for Java java.util.concurrent.atomic AtomicIntegerArray fields, constructors, methods, implement or subclass
The text is from its open source code.
AtomicIntegerArray(int length) Creates a new AtomicIntegerArray of the given length, with all elements initially zero. | |
AtomicIntegerArray(int[] array) Creates a new AtomicIntegerArray with the same length as, and all elements copied from, the given array. |
int | addAndGet(int i, int delta) Atomically adds the given value to the element at index i , with memory effects as specified by VarHandle#getAndAdd . |
boolean | compareAndSet(int i, int expectedValue, int newValue) Atomically sets the element at index i to newValue if the element's current value == expectedValue , with memory effects as specified by VarHandle#compareAndSet . |
int | decrementAndGet(int i) Atomically decrements the value of the element at index i , with memory effects as specified by VarHandle#getAndAdd . |
int | get(int i) Returns the current value of the element at index i , with memory effects as specified by VarHandle#getVolatile . |
int | getAndAdd(int i, int delta) Atomically adds the given value to the element at index i , with memory effects as specified by VarHandle#getAndAdd . |
int | getAndDecrement(int i) Atomically decrements the value of the element at index i , with memory effects as specified by VarHandle#getAndAdd . |
int | getAndIncrement(int i) Atomically increments the value of the element at index i , with memory effects as specified by VarHandle#getAndAdd . |
int | incrementAndGet(int i) Atomically increments the value of the element at index i , with memory effects as specified by VarHandle#getAndAdd . |
void | lazySet(int i, int newValue) Sets the element at index i to newValue , with memory effects as specified by VarHandle#setRelease . |
int | length() Returns the length of the array. |
void | set(int i, int newValue) Sets the element at index i to newValue , with memory effects as specified by VarHandle#setVolatile . |
String | toString() Returns the String representation of the current values of array. |
boolean | weakCompareAndSet(int i, int expectedValue, int newValue) Possibly atomically sets the element at index i to newValue if the element's current value == expectedValue , with memory effects as specified by VarHandle#weakCompareAndSetPlain . |