private static class ImmutableList.SingleElementList<T> extends ImmutableList<T>
| Constructor and Description |
|---|
SingleElementList(T element) |
| 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, waitprivate final T element
public SingleElementList(T element)
public T get(int index)
public int size()
public ImmutableList<T> append(T element)
append in class ImmutableList<T>