Interface ObjectArray<T>
- Type Parameters:
T- the type of the array
Represents an array which will be resized to the highest required index.
-
Method Summary
Modifier and TypeMethodDescriptionstatic <T> ObjectArray<T> static <T> ObjectArray<T> concurrent(int initialSize) get(int index) default voidremove(int index) voidstatic <T> ObjectArray<T> static <T> ObjectArray<T> singleThread(int initialSize) toList()Copies the array into a list.voidtrim()
-
Method Details
-
singleThread
-
singleThread
-
concurrent
-
concurrent
-
get
-
set
-
remove
default void remove(int index) -
trim
void trim() -
arrayCopy
-
toList
Copies the array into a list. Requires all elements to be present and indexed from 0.- Returns:
- List of the array elements
-