E - the type of element in the listpublic abstract class AbstractLinkedImmutableList<E> extends AbstractImmutableList<E> implements ConsList<E>
AbstractCollection.size(), ConsList.first(), and
ConsList.rest().| Modifier and Type | Class and Description |
|---|---|
protected static class |
AbstractLinkedImmutableList.LinkedSubList<E>
A sub-list view of an immutable list that is sequential/linked in nature.
|
modCount| Constructor and Description |
|---|
AbstractLinkedImmutableList() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object o) |
E |
get(int i) |
int |
hashCode() |
int |
indexOf(Object o) |
Iterator<E> |
iterator() |
int |
lastIndexOf(Object o) |
ListIterator<E> |
listIterator() |
ListIterator<E> |
listIterator(int pos) |
protected void |
rangeCheck(int index)
Checks that the specified index is greater than or equal to zero and less than this list's
AbstractCollection.size(). |
protected void |
rangeCheckWide(int index)
Checks that the specified index is greater than or equal to zero and less than or equal to
this list's
AbstractCollection.size(). |
ConsList<E> |
subList(int from,
int to) |
add, add, addAll, addAll, clear, remove, remove, removeAll, removeIf, removeRange, replaceAll, retainAll, set, sortcontains, containsAll, isEmpty, size, toArray, toArray, toStringclone, finalize, getClass, notify, notifyAll, wait, wait, waitcar, cdr, first, restadd, add, addAll, addAll, clear, contains, containsAll, isEmpty, remove, remove, removeAll, replaceAll, retainAll, set, size, sort, spliterator, toArray, toArrayparallelStream, removeIf, streamprotected void rangeCheck(int index)
AbstractCollection.size().index - an index to checkprotected void rangeCheckWide(int index)
AbstractCollection.size(). This is for certain operations where an index equal to the size
(after the last valid index in the list) is allowed.index - an index to checkpublic ListIterator<E> listIterator()
listIterator in interface List<E>listIterator in class AbstractImmutableList<E>public ListIterator<E> listIterator(int pos)
listIterator in interface List<E>listIterator in class AbstractImmutableList<E>public E get(int i)
public int indexOf(Object o)
public int lastIndexOf(Object o)
lastIndexOf in interface List<E>lastIndexOf in class AbstractList<E>public ConsList<E> subList(int from, int to)
ConsListsubList in interface ConsList<E>subList in interface List<E>subList in class AbstractImmutableList<E>List.subList(int, int)public boolean equals(Object o)
equals in interface Collection<E>equals in interface List<E>equals in class AbstractList<E>public int hashCode()
hashCode in interface Collection<E>hashCode in interface List<E>hashCode in class AbstractList<E>