T - The element typepublic class ImmutableList<T> extends AbstractList<T>
modCount| Constructor and Description |
|---|
ImmutableList(T[] data) |
ImmutableList(T[] data,
int from,
int to) |
| Modifier and Type | Method and Description |
|---|---|
T |
get(int index) |
int |
size() |
ImmutableList<T> |
subList(int fromIndex,
int toIndex) |
add, add, addAll, clear, equals, hashCode, indexOf, iterator, lastIndexOf, listIterator, listIterator, remove, removeRange, setaddAll, contains, containsAll, isEmpty, remove, removeAll, retainAll, toArray, toArray, toStringclone, finalize, getClass, notify, notifyAll, wait, wait, waitaddAll, contains, containsAll, isEmpty, remove, removeAll, replaceAll, retainAll, sort, spliterator, toArray, toArrayparallelStream, removeIf, streampublic ImmutableList(T[] data)
public ImmutableList(T[] data, int from, int to)
public T get(int index)
public int size()
size in interface Collection<T>size in interface List<T>size in class AbstractCollection<T>public ImmutableList<T> subList(int fromIndex, int toIndex)
Copyright © 2008–2015 The Apache Software Foundation. All rights reserved.