Class FastArrayList<T>
java.lang.Object
com.zenith.util.struct.FastArrayList<T>
- Direct Known Subclasses:
SortedFastArrayList
An ArrayList implementation optimized for fast, direct, array access.
Modifications have greatly increased overhead, implemented as copy-on-write
For best performance, this list should be rarely mutated
This class implements a very limited subset of the List interface, it's not intended to be a drop-in replacement for ArrayList or List
-
Field Details
-
array
-
clazz
-
-
Constructor Details
-
FastArrayList
-
-
Method Details
-
size
public int size() -
isEmpty
public boolean isEmpty() -
contains
-
add
-
remove
-
clear
public void clear() -
forEach
-
getArray
-
getClazz
-
setArray
-
equals
-
canEqual
-
hashCode
-
toString
-