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

protected static class Util.Flat3List<T> extends Util.AbstractFlatList<T>
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 Details