Class AbstractLinkedListJava21.LinkedSubList<E>
java.lang.Object
java.util.AbstractCollection<E>
java.util.AbstractList<E>
org.apache.commons.collections4.list.AbstractLinkedListJava21.LinkedSubList<E>
- Type Parameters:
E- the type of elements in this list.
- All Implemented Interfaces:
Iterable<E>,Collection<E>,List<E>
- Enclosing class:
AbstractLinkedListJava21<E>
The sublist implementation for AbstractLinkedListJava21.
- Since:
- 4.5.0-M3
-
Field Summary
Fields inherited from class java.util.AbstractList
modCount -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedLinkedSubList(AbstractLinkedListJava21<E> parent, int fromIndex, int toIndex) Constructs a new instance. -
Method Summary
Modifier and TypeMethodDescriptionvoidbooleanaddAll(int index, Collection<? extends E> coll) booleanaddAll(Collection<? extends E> coll) protected voidThrows aConcurrentModificationExceptionif this instance fails its concurrency check.voidclear()get(int index) iterator()listIterator(int index) protected voidrangeCheck(int index, int beyond) Throws anIndexOutOfBoundsExceptionif the given indices are out of bounds.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
-
Constructor Details
-
LinkedSubList
Constructs a new instance.- Parameters:
parent- The parent AbstractLinkedList.fromIndex- An index greater or equal to 0 and less thantoIndex.toIndex- An index greater thanfromIndex.
-
-
Method Details
-
add
-
addAll
- Specified by:
addAllin interfaceCollection<E>- Specified by:
addAllin interfaceList<E>- Overrides:
addAllin classAbstractCollection<E>
-
addAll
-
checkModCount
Throws aConcurrentModificationExceptionif this instance fails its concurrency check. -
clear
- Specified by:
clearin interfaceCollection<E>- Specified by:
clearin interfaceList<E>- Overrides:
clearin classAbstractList<E>
-
get
-
iterator
-
listIterator
- Specified by:
listIteratorin interfaceList<E>- Overrides:
listIteratorin classAbstractList<E>
-
rangeCheck
Throws anIndexOutOfBoundsExceptionif the given indices are out of bounds.- Parameters:
index- lower index.beyond- upper index.
-
remove
-
set
-
size
- Specified by:
sizein interfaceCollection<E>- Specified by:
sizein interfaceList<E>- Specified by:
sizein classAbstractCollection<E>
-
subList
-