Java java.util.concurrent.atomic AtomicIntegerArray fields, constructors, methods, implement or subclass

Example usage for Java java.util.concurrent.atomic AtomicIntegerArray fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for java.util.concurrent.atomic AtomicIntegerArray.

The text is from its open source code.

Constructor

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.

Method

intaddAndGet(int i, int delta)
Atomically adds the given value to the element at index i , with memory effects as specified by VarHandle#getAndAdd .
booleancompareAndSet(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 .
intdecrementAndGet(int i)
Atomically decrements the value of the element at index i , with memory effects as specified by VarHandle#getAndAdd .
intget(int i)
Returns the current value of the element at index i , with memory effects as specified by VarHandle#getVolatile .
intgetAndAdd(int i, int delta)
Atomically adds the given value to the element at index i , with memory effects as specified by VarHandle#getAndAdd .
intgetAndDecrement(int i)
Atomically decrements the value of the element at index i , with memory effects as specified by VarHandle#getAndAdd .
intgetAndIncrement(int i)
Atomically increments the value of the element at index i , with memory effects as specified by VarHandle#getAndAdd .
intincrementAndGet(int i)
Atomically increments the value of the element at index i , with memory effects as specified by VarHandle#getAndAdd .
voidlazySet(int i, int newValue)
Sets the element at index i to newValue , with memory effects as specified by VarHandle#setRelease .
intlength()
Returns the length of the array.
voidset(int i, int newValue)
Sets the element at index i to newValue , with memory effects as specified by VarHandle#setVolatile .
StringtoString()
Returns the String representation of the current values of array.
booleanweakCompareAndSet(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 .