public class ImmutableList<E>
extends java.util.AbstractList<E>
implements java.util.RandomAccess
Modifier | Constructor and Description |
---|---|
protected |
ImmutableList(java.util.Collection<? extends E> elements) |
protected |
ImmutableList(E... elements) |
Modifier and Type | Method and Description |
---|---|
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) |
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(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 java.util.Iterator<E> iterator()
Copyright © 2006-2014 The Apache Software Foundation. All Rights Reserved.