Class FlatLists.Flat3List<T>

Type Parameters:
T - Element type
All Implemented Interfaces:
Comparable<List>, Iterable<T>, Collection<T>, List<T>, RandomAccess, FlatLists.ComparableList<T>
Enclosing class:

protected static class FlatLists.Flat3List<T> extends FlatLists.AbstractFlatList<T> implements FlatLists.ComparableList<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 re-sized. The elements may be null.

The list is created via FlatLists.of(java.util.List).