Class AbstractLinkedList.LinkedSubList
java.lang.Object
java.util.AbstractCollection
java.util.AbstractList
org.apache.commons.collections.list.AbstractLinkedList.LinkedSubList
- All Implemented Interfaces:
Iterable,Collection,List
- Enclosing class:
AbstractLinkedList
The sublist implementation for AbstractLinkedList.
-
Field Summary
FieldsModifier and TypeFieldDescription(package private) intSublist modCount(package private) intOffset from the main list(package private) AbstractLinkedListThe main list(package private) intSublist sizeFields inherited from class java.util.AbstractList
modCount -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedLinkedSubList(AbstractLinkedList parent, int fromIndex, int toIndex) -
Method Summary
Modifier and TypeMethodDescriptionvoidbooleanaddAll(int index, Collection coll) booleanaddAll(Collection 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 java.util.AbstractList
add, equals, hashCode, indexOf, lastIndexOf, listIterator, removeRangeMethods inherited from class java.util.AbstractCollection
contains, containsAll, isEmpty, remove, removeAll, retainAll, toArray, toArray, toStringMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface java.util.Collection
parallelStream, removeIf, streamMethods inherited from interface java.util.List
contains, containsAll, isEmpty, remove, removeAll, replaceAll, retainAll, sort, spliterator, toArray, toArray
-
Field Details
-
parent
AbstractLinkedList 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- Specified by:
sizein interfaceList- Specified by:
sizein classAbstractCollection
-
get
- Specified by:
getin interfaceList- Specified by:
getin classAbstractList
-
add
- Specified by:
addin interfaceList- Overrides:
addin classAbstractList
-
remove
- Specified by:
removein interfaceList- Overrides:
removein classAbstractList
-
addAll
- Specified by:
addAllin interfaceCollection- Specified by:
addAllin interfaceList- Overrides:
addAllin classAbstractCollection
-
addAll
- Specified by:
addAllin interfaceList- Overrides:
addAllin classAbstractList
-
set
- Specified by:
setin interfaceList- Overrides:
setin classAbstractList
-
clear
public void clear()- Specified by:
clearin interfaceCollection- Specified by:
clearin interfaceList- Overrides:
clearin classAbstractList
-
iterator
- Specified by:
iteratorin interfaceCollection- Specified by:
iteratorin interfaceIterable- Specified by:
iteratorin interfaceList- Overrides:
iteratorin classAbstractList
-
listIterator
- Specified by:
listIteratorin interfaceList- Overrides:
listIteratorin classAbstractList
-
subList
- Specified by:
subListin interfaceList- Overrides:
subListin classAbstractList
-
rangeCheck
protected void rangeCheck(int index, int beyond) -
checkModCount
protected void checkModCount()
-