Package org.apache.commons.collections
Class FastArrayList.SubList
java.lang.Object
org.apache.commons.collections.FastArrayList.SubList
- All Implemented Interfaces:
Iterable,Collection,List
- Enclosing class:
FastArrayList
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidbooleanbooleanaddAll(int i, Collection o) booleanaddAll(Collection o) voidclear()booleanbooleanbooleanget(int i) private ListinthashCode()intbooleanisEmpty()iterator()intlistIterator(int i) remove(int i) booleanbooleanbooleanintsize()subList(int f, int l) Object[]toArray()Object[]Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.util.Collection
parallelStream, removeIf, streamMethods inherited from interface java.util.List
replaceAll, sort, spliterator
-
Field Details
-
first
private int first -
last
private int last -
expected
-
-
Constructor Details
-
SubList
public SubList(int first, int last)
-
-
Method Details
-
get
-
clear
public void clear()- Specified by:
clearin interfaceCollection- Specified by:
clearin interfaceList
-
remove
- Specified by:
removein interfaceCollection- Specified by:
removein interfaceList
-
removeAll
- Specified by:
removeAllin interfaceCollection- Specified by:
removeAllin interfaceList
-
retainAll
- Specified by:
retainAllin interfaceCollection- Specified by:
retainAllin interfaceList
-
size
public int size()- Specified by:
sizein interfaceCollection- Specified by:
sizein interfaceList
-
isEmpty
public boolean isEmpty()- Specified by:
isEmptyin interfaceCollection- Specified by:
isEmptyin interfaceList
-
contains
- Specified by:
containsin interfaceCollection- Specified by:
containsin interfaceList
-
containsAll
- Specified by:
containsAllin interfaceCollection- Specified by:
containsAllin interfaceList
-
toArray
- Specified by:
toArrayin interfaceCollection- Specified by:
toArrayin interfaceList
-
toArray
- Specified by:
toArrayin interfaceCollection- Specified by:
toArrayin interfaceList
-
equals
-
hashCode
public int hashCode() -
add
- Specified by:
addin interfaceCollection- Specified by:
addin interfaceList
-
addAll
- Specified by:
addAllin interfaceCollection- Specified by:
addAllin interfaceList
-
add
-
addAll
-
remove
-
set
-
iterator
-
listIterator
- Specified by:
listIteratorin interfaceList
-
listIterator
- Specified by:
listIteratorin interfaceList
-
get
-
indexOf
-
lastIndexOf
- Specified by:
lastIndexOfin interfaceList
-
subList
-