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
protected static class AbstractLinkedList.LinkedSubList extends AbstractList
The sublist implementation for AbstractLinkedList.
-
-
Field Summary
-
Fields inherited from class java.util.AbstractList
modCount
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedLinkedSubList(AbstractLinkedList parent, int fromIndex, int toIndex)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidadd(int index, Object obj)booleanaddAll(int index, Collection coll)booleanaddAll(Collection coll)protected voidcheckModCount()voidclear()Objectget(int index)Iteratoriterator()ListIteratorlistIterator(int index)protected voidrangeCheck(int index, int beyond)Objectremove(int index)Objectset(int index, Object obj)intsize()ListsubList(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 Detail
-
LinkedSubList
protected LinkedSubList(AbstractLinkedList parent, int fromIndex, int toIndex)
-
-
Method Detail
-
size
public int size()
- Specified by:
sizein interfaceCollection- Specified by:
sizein interfaceList- Specified by:
sizein classAbstractCollection
-
get
public Object get(int index)
- Specified by:
getin interfaceList- Specified by:
getin classAbstractList
-
add
public void add(int index, Object obj)- Specified by:
addin interfaceList- Overrides:
addin classAbstractList
-
remove
public Object remove(int index)
- Specified by:
removein interfaceList- Overrides:
removein classAbstractList
-
addAll
public boolean addAll(Collection coll)
- Specified by:
addAllin interfaceCollection- Specified by:
addAllin interfaceList- Overrides:
addAllin classAbstractCollection
-
addAll
public boolean addAll(int index, Collection coll)- Specified by:
addAllin interfaceList- Overrides:
addAllin classAbstractList
-
set
public Object set(int index, Object obj)
- Specified by:
setin interfaceList- Overrides:
setin classAbstractList
-
clear
public void clear()
- Specified by:
clearin interfaceCollection- Specified by:
clearin interfaceList- Overrides:
clearin classAbstractList
-
iterator
public Iterator iterator()
- Specified by:
iteratorin interfaceCollection- Specified by:
iteratorin interfaceIterable- Specified by:
iteratorin interfaceList- Overrides:
iteratorin classAbstractList
-
listIterator
public ListIterator listIterator(int index)
- Specified by:
listIteratorin interfaceList- Overrides:
listIteratorin classAbstractList
-
subList
public List subList(int fromIndexInclusive, int toIndexExclusive)
- Specified by:
subListin interfaceList- Overrides:
subListin classAbstractList
-
rangeCheck
protected void rangeCheck(int index, int beyond)
-
checkModCount
protected void checkModCount()
-
-