Package org.infinispan.commons.util
Class ImmutableListCopy.ImmutableSubList<E>
- java.lang.Object
-
- java.util.AbstractCollection<E>
-
- java.util.AbstractList<E>
-
- org.infinispan.commons.util.ImmutableListCopy.ImmutableSubList<E>
-
- All Implemented Interfaces:
Iterable<E>,Collection<E>,List<E>
- Enclosing class:
- ImmutableListCopy<E>
public class ImmutableListCopy.ImmutableSubList<E> extends AbstractList<E>
-
-
Field Summary
-
Fields inherited from class java.util.AbstractList
modCount
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanaddAll(int index, Collection<? extends E> c)booleanaddAll(Collection<? extends E> c)Eget(int index)Iterator<E>iterator()ListIterator<E>listIterator(int index)protected voidremoveRange(int fromIndex, int toIndex)intsize()List<E>subList(int fromIndex, int toIndex)-
Methods inherited from class java.util.AbstractList
add, add, clear, equals, hashCode, indexOf, lastIndexOf, listIterator, remove, set
-
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
-
-
-
-
Method Detail
-
get
public final E get(int index)
-
size
public final int size()
- Specified by:
sizein interfaceCollection<E>- Specified by:
sizein interfaceList<E>- Specified by:
sizein classAbstractCollection<E>
-
removeRange
protected final void removeRange(int fromIndex, int toIndex)- Overrides:
removeRangein classAbstractList<E>
-
addAll
public final boolean addAll(Collection<? extends E> c)
- Specified by:
addAllin interfaceCollection<E>- Specified by:
addAllin interfaceList<E>- Overrides:
addAllin classAbstractCollection<E>
-
addAll
public final boolean addAll(int index, Collection<? extends E> c)
-
listIterator
public final ListIterator<E> listIterator(int index)
- Specified by:
listIteratorin interfaceList<E>- Overrides:
listIteratorin classAbstractList<E>
-
-