public class ImmutableList<E> extends AbstractList<E> implements RandomAccess
modCount
Modifier | Constructor and Description |
---|---|
protected |
ImmutableList(Collection<? extends E> elements) |
protected |
ImmutableList(E... elements) |
Modifier and Type | Method and Description |
---|---|
E |
get(int index) |
Iterator<E> |
iterator() |
ListIterator<E> |
listIterator(int index) |
static <E> ImmutableList<E> |
newInstance(Collection<? extends E> elements) |
static <E> ImmutableList<E> |
newInstance(E... elements) |
boolean |
remove(Object o) |
boolean |
removeAll(Collection<?> clctn) |
int |
size() |
add, add, addAll, clear, equals, hashCode, indexOf, lastIndexOf, listIterator, remove, removeRange, set, subList
addAll, contains, containsAll, isEmpty, retainAll, toArray, toArray, toString
protected ImmutableList(E... elements)
protected ImmutableList(Collection<? extends E> elements)
public static <E> ImmutableList<E> newInstance(E... elements)
public static <E> ImmutableList<E> newInstance(Collection<? extends E> elements)
public E get(int index)
public int size()
size
in interface Collection<E>
size
in interface List<E>
size
in class AbstractCollection<E>
public boolean remove(Object o)
remove
in interface Collection<E>
remove
in interface List<E>
remove
in class AbstractCollection<E>
public boolean removeAll(Collection<?> clctn)
removeAll
in interface Collection<E>
removeAll
in interface List<E>
removeAll
in class AbstractCollection<E>
public ListIterator<E> listIterator(int index)
listIterator
in interface List<E>
listIterator
in class AbstractList<E>
Copyright © 2006-2015 The Apache Software Foundation. All Rights Reserved.