InnerT - The element type of the backing array.OuterT - The element type of the list.public abstract class ObjectArrayBackedList<InnerT,OuterT> extends AbstractList<OuterT>
InnerT[] 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 |
ObjectArrayBackedList(InnerT[] pArray)
Create an instance backed by a given array.
|
| Modifier and Type | Method and Description |
|---|---|
protected abstract OuterT |
convert(InnerT e) |
OuterT |
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, toStringprotected ObjectArrayBackedList(InnerT[] pArray)
public final OuterT get(int pIndex)
public final int size()
size in interface Collection<OuterT>size in interface List<OuterT>size in class AbstractCollection<OuterT>