T
- protected static class Util.Flat2List<T> extends Util.AbstractFlatList<T>
ArrayList
or
Arrays.asList(Object[])
there is
no array, only one piece of memory allocated, therefore is very compact
and cache and CPU efficient.
The list is read-only, cannot be modified or resized, and neither of the elements can be null.
The list is created via Util.flatList(Object[])
.
Constructor and Description |
---|
Util.Flat2List(T t0,
T t1) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
T |
get(int index) |
int |
hashCode() |
int |
indexOf(Object o) |
int |
lastIndexOf(Object o) |
int |
size() |
Object[] |
toArray() |
<T2> T2[] |
toArray(T2[] a) |
String |
toString() |
add, add, addAll, addAll, asArrayList, clear, contains, containsAll, isEmpty, iterator, listIterator, listIterator, remove, remove, removeAll, retainAll, set, subList
Util.Flat2List(T t0, T t1)