Package com.couchbase.client.dcp.util
Class AtomicBooleanArray
java.lang.Object
com.couchbase.client.dcp.util.AtomicBooleanArray
A
boolean
array in which elements may be updated atomically.-
Constructor Summary
ConstructorsConstructorDescriptionAtomicBooleanArray
(int length) Creates a new AtomicBooleanArray of the given length, with all elements initially false. -
Method Summary
-
Constructor Details
-
AtomicBooleanArray
public AtomicBooleanArray(int length) Creates a new AtomicBooleanArray of the given length, with all elements initially false.- Parameters:
length
- the length of the array
-
-
Method Details
-
get
public boolean get(int index) -
set
public void set(int index, boolean value) -
length
public int length()
-