Package org.ujmp.core.collections.list
Class FastArrayList.SubList
java.lang.Object
java.util.AbstractCollection<E>
java.util.AbstractList<E>
org.ujmp.core.collections.list.FastArrayList.SubList
- All Implemented Interfaces:
Iterable<E>
,Collection<E>
,List<E>
,RandomAccess
- Enclosing class:
- FastArrayList<E>
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final int
private final FastArrayList<E>
private final int
(package private) int
Fields inherited from class java.util.AbstractList
modCount
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
boolean
addAll
(int index, Collection<? extends E> c) boolean
addAll
(Collection<? extends E> c) get
(int index) iterator()
listIterator
(int index) remove
(int index) protected void
removeRange
(int fromIndex, int toIndex) int
size()
Methods inherited from class java.util.AbstractList
add, clear, equals, hashCode, indexOf, lastIndexOf, listIterator, subList
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
-
Field Details
-
parent
-
parentOffset
private final int parentOffset -
offset
private final int offset -
size
int size
-
-
Constructor Details
-
SubList
SubList(FastArrayList<E> parent, int offset, int fromIndex, int toIndex)
-
-
Method Details
-
set
-
get
-
size
public int size()- Specified by:
size
in interfaceCollection<E>
- Specified by:
size
in interfaceList<E>
- Specified by:
size
in classAbstractCollection<E>
-
add
-
remove
-
removeRange
protected void removeRange(int fromIndex, int toIndex) - Overrides:
removeRange
in classAbstractList<E>
-
addAll
- Specified by:
addAll
in interfaceCollection<E>
- Specified by:
addAll
in interfaceList<E>
- Overrides:
addAll
in classAbstractCollection<E>
-
addAll
-
iterator
-
listIterator
- Specified by:
listIterator
in interfaceList<E>
- Overrides:
listIterator
in classAbstractList<E>
-