public final class ImmutableArrayList<E> extends ImmutableAbstractCollection<E> implements List<E>, Serializable, Cloneable
| Constructor and Description |
|---|
ImmutableArrayList(List<E> list)
Constructor that copies.
|
| Modifier and Type | Method and Description |
|---|---|
void |
add(int index,
E e) |
boolean |
addAll(int index,
Collection<? extends E> c) |
ImmutableArrayList<E> |
clone() |
E |
get(int index) |
int |
indexOf(Object o) |
int |
lastIndexOf(Object o) |
ImmutableListIterator<E> |
listIterator() |
ImmutableListIterator<E> |
listIterator(int index) |
E |
remove(int index) |
E |
set(int index,
E e) |
ImmutableArrayList<E> |
subList(int fromIndex,
int toIndex) |
add, addAll, checkValidity, clear, contains, containsAll, equals, hashCode, isEmpty, iterator, remove, removeAll, retainAll, size, toArray, toArray, toStringpublic ImmutableArrayList(List<E> list)
list - the list to decorate, must not be nullIllegalArgumentException - if list is nullpublic final ImmutableArrayList<E> clone()
public final int lastIndexOf(Object o)
lastIndexOf in interface List<E>public final ImmutableListIterator<E> listIterator()
listIterator in interface List<E>public final ImmutableListIterator<E> listIterator(int index)
listIterator in interface List<E>public final ImmutableArrayList<E> subList(int fromIndex, int toIndex)
public final boolean addAll(int index,
Collection<? extends E> c)
Copyright © 2010-2013 NWTS Java Code. All Rights Reserved. Licensed Under the Apache License version 2.0.