Package com.mchange.v1.util
Class Sublist
java.lang.Object
java.util.AbstractCollection<E>
java.util.AbstractList
com.mchange.v1.util.Sublist
- All Implemented Interfaces:
Iterable
,Collection
,List
-
Field Summary
Fields inherited from class java.util.AbstractList
modCount
-
Constructor Summary
-
Method Summary
Methods inherited from class java.util.AbstractList
add, addAll, clear, equals, hashCode, indexOf, iterator, lastIndexOf, listIterator, listIterator, removeRange, subList
Methods inherited from class java.util.AbstractCollection
addAll, 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
addAll, contains, containsAll, isEmpty, remove, removeAll, replaceAll, retainAll, sort, spliterator, toArray, toArray
-
Constructor Details
-
Sublist
public Sublist() -
Sublist
- Parameters:
start_index
- index of the element of the parent list just before which the Sublist beginsend_index
- index of the first element of parent excluded from the Sublist
-
-
Method Details
-
setParent
- Parameters:
start_index
- index of the element of the parent list just before which the Sublist beginsend_index
- index of the first element of parent excluded from the Sublist
-
get
- Specified by:
get
in interfaceList
- Specified by:
get
in classAbstractList
-
size
public int size()- Specified by:
size
in interfaceCollection
- Specified by:
size
in interfaceList
- Specified by:
size
in classAbstractCollection
-
set
- Specified by:
set
in interfaceList
- Overrides:
set
in classAbstractList
-
add
- Specified by:
add
in interfaceList
- Overrides:
add
in classAbstractList
-
remove
- Specified by:
remove
in interfaceList
- Overrides:
remove
in classAbstractList
-