Class AbstractLinkedList.LinkedSubList<E>
- java.lang.Object
-
- java.util.AbstractCollection<E>
-
- java.util.AbstractList<E>
-
- org.apache.commons.collections4.list.AbstractLinkedList.LinkedSubList<E>
-
- All Implemented Interfaces:
java.lang.Iterable<E>,java.util.Collection<E>,java.util.List<E>
- Enclosing class:
- AbstractLinkedList<E>
protected static class AbstractLinkedList.LinkedSubList<E> extends java.util.AbstractList<E>The sublist implementation for AbstractLinkedList.
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedLinkedSubList(AbstractLinkedList<E> parent, int fromIndex, int toIndex)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidadd(int index, E obj)booleanaddAll(int index, java.util.Collection<? extends E> coll)booleanaddAll(java.util.Collection<? extends E> coll)protected voidcheckModCount()voidclear()Eget(int index)java.util.Iterator<E>iterator()java.util.ListIterator<E>listIterator(int index)protected voidrangeCheck(int index, int beyond)Eremove(int index)Eset(int index, E obj)intsize()java.util.List<E>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
-
-
-
-
Constructor Detail
-
LinkedSubList
protected LinkedSubList(AbstractLinkedList<E> parent, int fromIndex, int toIndex)
-
-
Method Detail
-
size
public int size()
-
get
public E get(int index)
-
add
public void add(int index, E obj)
-
remove
public E remove(int index)
-
addAll
public boolean addAll(java.util.Collection<? extends E> coll)
-
addAll
public boolean addAll(int index, java.util.Collection<? extends E> coll)
-
clear
public void clear()
-
iterator
public java.util.Iterator<E> iterator()
-
listIterator
public java.util.ListIterator<E> listIterator(int index)
-
subList
public java.util.List<E> subList(int fromIndexInclusive, int toIndexExclusive)
-
rangeCheck
protected void rangeCheck(int index, int beyond)
-
checkModCount
protected void checkModCount()
-
-