protected static class AbstractLinkedList.LinkedSubList<E>
extends java.util.AbstractList<E>
Modifier and Type | Field and Description |
---|---|
(package private) int |
expectedModCount
Sublist modCount
|
(package private) int |
offset
Offset from the main list
|
(package private) AbstractLinkedList<E> |
parent
The main list
|
(package private) int |
size
Sublist size
|
Modifier | Constructor and Description |
---|---|
protected |
LinkedSubList(AbstractLinkedList<E> parent,
int fromIndex,
int toIndex) |
Modifier and Type | Method and Description |
---|---|
void |
add(int index,
E obj) |
boolean |
addAll(java.util.Collection<? extends E> coll) |
boolean |
addAll(int index,
java.util.Collection<? extends E> coll) |
protected void |
checkModCount() |
void |
clear() |
E |
get(int index) |
java.util.Iterator<E> |
iterator() |
java.util.ListIterator<E> |
listIterator(int index) |
protected void |
rangeCheck(int index,
int beyond) |
E |
remove(int index) |
E |
set(int index,
E obj) |
int |
size() |
java.util.List<E> |
subList(int fromIndexInclusive,
int toIndexExclusive) |
add, equals, hashCode, indexOf, lastIndexOf, listIterator, removeRange
contains, containsAll, isEmpty, remove, removeAll, retainAll, toArray, toArray, toString
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
AbstractLinkedList<E> parent
int offset
int size
int expectedModCount
protected LinkedSubList(AbstractLinkedList<E> parent, int fromIndex, int toIndex)
public int size()
public E get(int index)
public void add(int index, E obj)
public E remove(int index)
public boolean addAll(java.util.Collection<? extends E> coll)
public boolean addAll(int index, java.util.Collection<? extends E> coll)
public void clear()
public java.util.Iterator<E> iterator()
public java.util.ListIterator<E> listIterator(int index)
public java.util.List<E> subList(int fromIndexInclusive, int toIndexExclusive)
protected void rangeCheck(int index, int beyond)
protected void checkModCount()