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, ofadd, add, addAll, clear, equals, hashCode, indexOf, iterator, lastIndexOf, listIterator, listIterator, remove, removeRange, set, subListaddAll, contains, containsAll, isEmpty, remove, removeAll, retainAll, toArray, toArray, toStringclone, finalize, getClass, notify, notifyAll, wait, wait, waitpublic T get(int index)
public int size()
public ImmutableList<T> append(T element)
append in class ImmutableList<T>