Package mondrian.olap
Class Util.Flat3List<T>
java.lang.Object
mondrian.olap.Util.AbstractFlatList<T>
mondrian.olap.Util.Flat3List<T>
- Type Parameters:
T
-
- All Implemented Interfaces:
Iterable<T>
,Collection<T>
,List<T>
,RandomAccess
- Enclosing class:
- Util
List that stores its three elements in the three members of the class.
Unlike
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 none of the elements can be null.
The list is created via Util.flatList(Object[])
.
- See Also:
-
Method Summary
Methods inherited from class mondrian.olap.Util.AbstractFlatList
add, add, addAll, addAll, asArrayList, clear, contains, containsAll, isEmpty, iterator, listIterator, listIterator, remove, remove, removeAll, retainAll, set, subList
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface java.util.Collection
parallelStream, removeIf, stream, toArray
Methods inherited from interface java.util.List
replaceAll, sort, spliterator
-
Method Details
-
toString
-
get
-
size
public int size() -
equals
-
hashCode
public int hashCode() -
indexOf
-
lastIndexOf
-
toArray
public <T2> T2[] toArray(T2[] a) -
toArray
-