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[])
.
Util.Flat3List
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
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
replaceAll, sort, spliterator
parallelStream, removeIf, stream
Copyright © 2018 Hitachi Vantara. All rights reserved.