private static class ImmutableList.TwoElementList<T> extends ImmutableList<T>
Modifier | Constructor and Description |
---|---|
private |
TwoElementList(T element0,
T element1) |
Modifier and Type | Method and Description |
---|---|
ImmutableList<T> |
append(T element) |
T |
get(int index) |
int |
size() |
copyOf, of, of, of, of, of, of, of, of, of
add, add, addAll, clear, equals, hashCode, indexOf, iterator, lastIndexOf, listIterator, listIterator, remove, removeRange, set, subList
addAll, contains, containsAll, isEmpty, remove, removeAll, retainAll, toArray, toArray, toString
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
public T get(int index)
public int size()
public ImmutableList<T> append(T element)
append
in class ImmutableList<T>