public class SimpleArrayList<E> extends java.util.ArrayList<E> implements SimpleList<E>, java.io.Serializable
| Modifier and Type | Field and Description |
|---|---|
private static long |
serialVersionUID |
| Constructor and Description |
|---|
SimpleArrayList() |
SimpleArrayList(java.util.Collection<? extends E> c) |
SimpleArrayList(int initialCapacity) |
| Modifier and Type | Method and Description |
|---|---|
SimpleList<E> |
getSublist(int index)
Return a sublist of this list that contains the index.
|
java.util.List<E> |
toJDKList()
Returns a java.util.List version of this list.
|
add, add, addAll, addAll, clear, clone, contains, ensureCapacity, forEach, get, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, removeIf, removeRange, replaceAll, retainAll, set, size, sort, spliterator, subList, toArray, toArray, trimToSizefinalize, getClass, notify, notifyAll, wait, wait, waitget, isEmpty, sizeprivate static final long serialVersionUID
public SimpleArrayList(java.util.Collection<? extends E> c)
public SimpleArrayList()
public SimpleArrayList(int initialCapacity)
public SimpleList<E> getSublist(int index)
SimpleListThe result is always an existing SimpleList, the smallest one that contains the index.
Currently, it is always a SimpleArrayList.
getSublist in interface SimpleList<E>index - the index into this listpublic java.util.List<E> toJDKList()
SimpleListtoJDKList in interface SimpleList<E>List for this list