private static class ImmutableList.RegularList extends ImmutableList<java.lang.Object>
Modifier and Type | Field and Description |
---|---|
private java.lang.Object[] |
elements |
Modifier | Constructor and Description |
---|---|
private |
RegularList(java.lang.Object[] elements) |
Modifier and Type | Method and Description |
---|---|
ImmutableList<java.lang.Object> |
append(java.lang.Object element) |
java.lang.Object |
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 java.lang.Object get(int index)
get
in interface java.util.List<java.lang.Object>
get
in class java.util.AbstractList<java.lang.Object>
public int size()
size
in interface java.util.Collection<java.lang.Object>
size
in interface java.util.List<java.lang.Object>
size
in class java.util.AbstractCollection<java.lang.Object>
public ImmutableList<java.lang.Object> append(java.lang.Object element)
append
in class ImmutableList<java.lang.Object>