T - public final class ImmutableArrayList<T> extends AbstractList<T>
| Modifier and Type | Field and Description |
|---|---|
protected int |
hashCode |
protected int[] |
indexes |
protected T[] |
underlyingArray |
modCount| Constructor and Description |
|---|
ImmutableArrayList(T[] underlyingArray) |
ImmutableArrayList(T[] underlyingArray,
int[] indexes) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object o) |
T |
get(int index) |
int |
hashCode() |
T |
set(int index,
T value) |
int |
size() |
add, add, addAll, clear, indexOf, iterator, lastIndexOf, listIterator, listIterator, remove, removeRange, subListaddAll, 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, streamprotected final T[] underlyingArray
protected final int[] indexes
protected final int hashCode
public ImmutableArrayList(T[] underlyingArray, int[] indexes)
public ImmutableArrayList(T[] underlyingArray)
public T get(int index)
public int size()
size in interface Collection<T>size in interface List<T>size in class AbstractCollection<T>public int hashCode()
hashCode in interface Collection<T>hashCode in interface List<T>hashCode in class AbstractList<T>public boolean equals(Object o)
equals in interface Collection<T>equals in interface List<T>equals in class AbstractList<T>Copyright © 2014–2017 Pivotal Software, Inc.. All rights reserved.