public class ImmutableList<E>
extends java.util.AbstractList<E>
implements java.util.RandomAccess
| Modifier and Type | Class and Description |
|---|---|
private class |
ImmutableList.ListItr |
| Modifier and Type | Field and Description |
|---|---|
(package private) java.lang.Object[] |
elements |
| Modifier | Constructor and Description |
|---|---|
protected |
ImmutableList(java.util.Collection<? extends E> elements) |
protected |
ImmutableList(E... elements) |
| Modifier and Type | Method and Description |
|---|---|
void |
clear() |
E |
get(int index) |
java.util.Iterator<E> |
iterator() |
java.util.ListIterator<E> |
listIterator(int index) |
static <E> ImmutableList<E> |
newInstance(java.util.Collection<? extends E> elements) |
static <E> ImmutableList<E> |
newInstance(E... elements) |
boolean |
remove(java.lang.Object o) |
boolean |
removeAll(java.util.Collection<?> clctn) |
boolean |
retainAll(java.util.Collection<?> c) |
int |
size() |
add, add, addAll, equals, hashCode, indexOf, lastIndexOf, listIterator, remove, removeRange, set, subListaddAll, contains, containsAll, isEmpty, toArray, toArray, toStringclone, finalize, getClass, notify, notifyAll, wait, wait, waitprotected ImmutableList(E... elements)
protected ImmutableList(java.util.Collection<? extends E> elements)
public static <E> ImmutableList<E> newInstance(E... elements)
public static <E> ImmutableList<E> newInstance(java.util.Collection<? extends E> elements)
public E get(int index)
public int size()
public boolean remove(java.lang.Object o)
public boolean removeAll(java.util.Collection<?> clctn)
public void clear()
public boolean retainAll(java.util.Collection<?> c)
public java.util.Iterator<E> iterator()