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 SummaryFields inherited from class java.util.AbstractListmodCount
- 
Constructor SummaryConstructorsModifierConstructorDescriptionprotectedLinkedSubList(AbstractLinkedListJava21<E> parent, int fromIndex, int toIndex) Constructs a new instance.
- 
Method SummaryModifier 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.AbstractListadd, equals, hashCode, indexOf, lastIndexOf, listIterator, removeRangeMethods inherited from class java.util.AbstractCollectioncontains, containsAll, isEmpty, remove, removeAll, retainAll, toArray, toArray, toStringMethods inherited from class java.lang.Objectclone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface java.util.CollectionparallelStream, removeIf, streamMethods inherited from interface java.util.Listcontains, containsAll, isEmpty, remove, removeAll, replaceAll, retainAll, sort, spliterator, toArray, toArray
- 
Constructor Details- 
LinkedSubListConstructs a new instance.- Parameters:
- parent- The parent AbstractLinkedList.
- fromIndex- An index greater or equal to 0 and less than- toIndex.
- toIndex- An index greater than- fromIndex.
 
 
- 
- 
Method Details- 
add
- 
addAll- Specified by:
- addAllin interface- Collection<E>
- Specified by:
- addAllin interface- List<E>
- Overrides:
- addAllin class- AbstractCollection<E>
 
- 
addAll
- 
checkModCountThrows aConcurrentModificationExceptionif this instance fails its concurrency check.
- 
clear- Specified by:
- clearin interface- Collection<E>
- Specified by:
- clearin interface- List<E>
- Overrides:
- clearin class- AbstractList<E>
 
- 
get
- 
iterator
- 
listIterator- Specified by:
- listIteratorin interface- List<E>
- Overrides:
- listIteratorin class- AbstractList<E>
 
- 
rangeCheckThrows anIndexOutOfBoundsExceptionif the given indices are out of bounds.- Parameters:
- index- lower index.
- beyond- upper index.
 
- 
remove
- 
set
- 
size- Specified by:
- sizein interface- Collection<E>
- Specified by:
- sizein interface- List<E>
- Specified by:
- sizein class- AbstractCollection<E>
 
- 
subList
 
-