E - The element type.public abstract class LongArrayBackedList<E> extends AbstractList<E> implements RandomAccess
long[] and can have any element type. Sub-classes
need to be defined and implement methods for creating element instances from a long value. These
classes should not override any other methods to guarantee immutability.modCount| Modifier | Constructor and Description |
|---|---|
protected |
LongArrayBackedList(long[] pArray)
Create an instance backed by a given array.
|
| Modifier and Type | Method and Description |
|---|---|
protected abstract E |
convert(long e) |
E |
get(int pIndex) |
int |
size() |
add, add, addAll, clear, equals, hashCode, indexOf, iterator, lastIndexOf, listIterator, listIterator, remove, removeRange, set, 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 LongArrayBackedList(long[] pArray)