Package mondrian.olap
Class Util.Flat2List<T>
- java.lang.Object
-
- mondrian.olap.Util.AbstractFlatList<T>
-
- mondrian.olap.Util.Flat2List<T>
-
- Type Parameters:
T-
- All Implemented Interfaces:
Iterable<T>,Collection<T>,List<T>,RandomAccess
- Enclosing class:
- Util
protected static class Util.Flat2List<T> extends Util.AbstractFlatList<T>
List that stores its two elements in the two members of the class. UnlikeArrayListorArrays.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[]).- See Also:
Util.Flat3List
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object o)Tget(int index)inthashCode()intindexOf(Object o)intlastIndexOf(Object o)intsize()Object[]toArray()<T2> T2[]toArray(T2[] a)StringtoString()-
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
-
-