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, set
addAll, contains, containsAll, isEmpty, remove, removeAll, retainAll, toArray, toArray, toString
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
addAll, contains, containsAll, isEmpty, remove, removeAll, replaceAll, retainAll, sort, spliterator, toArray, toArray
parallelStream, removeIf, stream
public 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–2016 The Apache Software Foundation. All rights reserved.