Class AbstractLinkedList.LinkedSubList<E>
java.lang.Object
java.util.AbstractCollection<E>
java.util.AbstractList<E>
org.apache.commons.collections4.list.AbstractLinkedList.LinkedSubList<E>
- All Implemented Interfaces:
Iterable<E>, Collection<E>, List<E>
- Enclosing class:
AbstractLinkedList<E>
The sublist implementation for AbstractLinkedList.
- Since:
- 3.0
-
Field Summary
FieldsModifier and TypeFieldDescription(package private) intSublist modCount(package private) intOffset from the main list(package private) AbstractLinkedList<E> The main list(package private) intSublist sizeFields inherited from class AbstractList
modCount -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedLinkedSubList(AbstractLinkedList<E> parent, int fromIndex, int toIndex) -
Method Summary
Modifier and TypeMethodDescriptionvoidbooleanaddAll(int index, Collection<? extends E> coll) booleanaddAll(Collection<? extends E> coll) protected voidvoidclear()get(int index) iterator()listIterator(int index) protected voidrangeCheck(int index, int beyond) remove(int index) intsize()subList(int fromIndexInclusive, int toIndexExclusive) Methods inherited from class AbstractList
add, equals, hashCode, indexOf, lastIndexOf, listIterator, removeRangeMethods inherited from class AbstractCollection
contains, containsAll, isEmpty, remove, removeAll, retainAll, toArray, toArray, toStringMethods inherited from interface Collection
parallelStream, removeIf, streamMethods inherited from interface List
contains, containsAll, isEmpty, remove, removeAll, replaceAll, retainAll, sort, spliterator, toArray, toArray
-
Field Details
-
parent
AbstractLinkedList<E> parentThe main list -
offset
int offsetOffset from the main list -
size
int sizeSublist size -
expectedModCount
int expectedModCountSublist modCount
-
-
Constructor Details
-
LinkedSubList
-
-
Method Details
-
size
public int size()- Specified by:
sizein interfaceCollection<E>- Specified by:
sizein interfaceList<E>- Specified by:
sizein classAbstractCollection<E>
-
get
-
add
-
remove
-
addAll
- Specified by:
addAllin interfaceCollection<E>- Specified by:
addAllin interfaceList<E>- Overrides:
addAllin classAbstractCollection<E>
-
addAll
-
set
-
clear
public void clear()- Specified by:
clearin interfaceCollection<E>- Specified by:
clearin interfaceList<E>- Overrides:
clearin classAbstractList<E>
-
iterator
-
listIterator
- Specified by:
listIteratorin interfaceList<E>- Overrides:
listIteratorin classAbstractList<E>
-
subList
-
rangeCheck
protected void rangeCheck(int index, int beyond) -
checkModCount
protected void checkModCount()
-