Class AbstractLinkedList.LinkedSubList
java.lang.Object
java.util.AbstractCollection<E>
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
Fields inherited from class java.util.AbstractList
modCount
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
LinkedSubList
(AbstractLinkedList parent, int fromIndex, int toIndex) -
Method Summary
Modifier and TypeMethodDescriptionvoid
boolean
addAll
(int index, Collection coll) boolean
addAll
(Collection coll) protected void
void
clear()
get
(int index) iterator()
listIterator
(int index) protected void
rangeCheck
(int index, int beyond) remove
(int index) int
size()
subList
(int fromIndexInclusive, int toIndexExclusive) Methods inherited from class java.util.AbstractList
add, equals, hashCode, indexOf, lastIndexOf, listIterator, removeRange
Methods inherited from class java.util.AbstractCollection
contains, containsAll, isEmpty, remove, removeAll, retainAll, toArray, toArray, toString
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface java.util.Collection
parallelStream, removeIf, stream, toArray
Methods inherited from interface java.util.List
contains, containsAll, isEmpty, remove, removeAll, replaceAll, retainAll, sort, spliterator, toArray, toArray
-
Constructor Details
-
LinkedSubList
-
-
Method Details
-
size
public int size()- Specified by:
size
in interfaceCollection
- Specified by:
size
in interfaceList
- Specified by:
size
in classAbstractCollection
-
get
- Specified by:
get
in interfaceList
- Specified by:
get
in classAbstractList
-
add
- Specified by:
add
in interfaceList
- Overrides:
add
in classAbstractList
-
remove
- Specified by:
remove
in interfaceList
- Overrides:
remove
in classAbstractList
-
addAll
- Specified by:
addAll
in interfaceCollection
- Specified by:
addAll
in interfaceList
- Overrides:
addAll
in classAbstractCollection
-
addAll
- Specified by:
addAll
in interfaceList
- Overrides:
addAll
in classAbstractList
-
set
- Specified by:
set
in interfaceList
- Overrides:
set
in classAbstractList
-
clear
public void clear()- Specified by:
clear
in interfaceCollection
- Specified by:
clear
in interfaceList
- Overrides:
clear
in classAbstractList
-
iterator
- Specified by:
iterator
in interfaceCollection
- Specified by:
iterator
in interfaceIterable
- Specified by:
iterator
in interfaceList
- Overrides:
iterator
in classAbstractList
-
listIterator
- Specified by:
listIterator
in interfaceList
- Overrides:
listIterator
in classAbstractList
-
subList
- Specified by:
subList
in interfaceList
- Overrides:
subList
in classAbstractList
-
rangeCheck
protected void rangeCheck(int index, int beyond) -
checkModCount
protected void checkModCount()
-