Package io.github.ai4ci.util
Class ThreadSafeArray<X>
java.lang.Object
io.github.ai4ci.util.ThreadSafeArray<X>
- Type Parameters:
X
- the array type
- All Implemented Interfaces:
Serializable
A write once read many times list like data structure. This allows
multi-threaded writing to the array and multi-threaded reading and
largely assumes they happen in different phases.
- See Also:
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
ThreadSafeArray
-
-
Method Details
-
empty
-
put
-
finish
-
get
-
stream
-
parallelStream
-
size
public int size() -
isEmpty
public boolean isEmpty()
-