public class FlatLists extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
FlatLists.AbstractFlatList<T>
Base class for flat lists.
|
static interface |
FlatLists.ComparableList<T>
List that is also comparable.
|
protected static class |
FlatLists.Flat2List<T>
List that stores its two elements in the two members of the class.
|
protected static class |
FlatLists.Flat3List<T>
List that stores its three elements in the three members of the class.
|
| Modifier and Type | Field and Description |
|---|---|
static org.apache.calcite.runtime.FlatLists.ComparableEmptyList |
COMPARABLE_EMPTY_LIST |
| Modifier and Type | Method and Description |
|---|---|
static <T> List<T> |
copy(T... t)
Creates a memory-, CPU- and cache-efficient immutable list,
always copying the contents.
|
static <T> List<T> |
of(List<T> t)
Creates a memory-, CPU- and cache-efficient immutable list from an
existing list.
|
static <T> List<T> |
of(T... t)
Creates a memory-, CPU- and cache-efficient immutable list.
|
static <T> List<T> |
of(T t0,
T t1)
Creates a flat list with 2 elements.
|
static <T> List<T> |
of(T t0,
T t1,
T t2)
Creates a flat list with 3 elements.
|
public static final org.apache.calcite.runtime.FlatLists.ComparableEmptyList COMPARABLE_EMPTY_LIST
public static <T> List<T> of(T t0, T t1)
public static <T> List<T> of(T t0, T t1, T t2)
public static <T> List<T> of(T... t)
T - Element typet - Array of members of listpublic static <T> List<T> copy(T... t)
T - Element typet - Array of members of listCopyright © 2012–2015 The Apache Software Foundation. All rights reserved.