T
- public abstract class ImmutableList<T>
extends java.util.AbstractList<T>
Modifier and Type | Class and Description |
---|---|
private static class |
ImmutableList.RegularList |
private static class |
ImmutableList.SingleElementList<T> |
private static class |
ImmutableList.TwoElementList<T> |
Modifier and Type | Field and Description |
---|---|
private static ImmutableList<?> |
EMPTY_LIST |
Constructor and Description |
---|
ImmutableList() |
Modifier and Type | Method and Description |
---|---|
abstract ImmutableList<T> |
append(T element) |
static <T> ImmutableList<T> |
copyOf(java.util.List<T> other) |
static <T> ImmutableList<T> |
of() |
static <T> ImmutableList<T> |
of(ImmutableList<T> first,
T last) |
static <T> ImmutableList<T> |
of(T... elements) |
static <T> ImmutableList<T> |
of(T a) |
static <T> ImmutableList<T> |
of(T[] first,
T last) |
static <T> ImmutableList<T> |
of(T first,
ImmutableList<T> more) |
static <T> ImmutableList<T> |
of(T a,
T b) |
static <T> ImmutableList<T> |
of(T first,
T[] more) |
static <T> ImmutableList<T> |
of(T a,
T b,
T c) |
add, add, addAll, clear, equals, get, hashCode, indexOf, iterator, lastIndexOf, listIterator, listIterator, remove, removeRange, set, subList
addAll, contains, containsAll, isEmpty, remove, removeAll, retainAll, size, toArray, toArray, toString
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
private static final ImmutableList<?> EMPTY_LIST
public abstract ImmutableList<T> append(T element)
public static <T> ImmutableList<T> copyOf(java.util.List<T> other)
public static <T> ImmutableList<T> of()
public static <T> ImmutableList<T> of(T a)
public static <T> ImmutableList<T> of(T a, T b)
public static <T> ImmutableList<T> of(T a, T b, T c)
public static <T> ImmutableList<T> of(T... elements)
public static <T> ImmutableList<T> of(T first, T[] more)
public static <T> ImmutableList<T> of(T[] first, T last)
public static <T> ImmutableList<T> of(T first, ImmutableList<T> more)
public static <T> ImmutableList<T> of(ImmutableList<T> first, T last)