public final class UnmodifiableArrayList<T> extends AbstractList<T> implements RandomAccess
modCount| Constructor and Description |
|---|
UnmodifiableArrayList(T[] array) |
| Modifier and Type | Method and Description |
|---|---|
T |
get(int index) |
Iterator<T> |
iterator() |
int |
size() |
Object[] |
toArray() |
add, add, addAll, clear, equals, hashCode, indexOf, lastIndexOf, listIterator, listIterator, remove, removeRange, set, subListaddAll, contains, containsAll, isEmpty, remove, removeAll, retainAll, toArray, toStringaddAll, addFirst, addLast, contains, containsAll, copyOf, getFirst, getLast, isEmpty, of, of, of, of, of, of, of, of, of, of, of, of, remove, removeAll, removeFirst, removeLast, replaceAll, retainAll, reversed, sort, spliterator, toArrayparallelStream, removeIf, stream, toArraypublic UnmodifiableArrayList(T[] array)
public T get(int index)
public int size()
size in interface Collection<T>size in interface List<T>size in class AbstractCollection<T>public Object[] toArray()
toArray in interface Collection<T>toArray in interface List<T>toArray in class AbstractCollection<T>