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 TypeMethodDescriptionvoid
boolean
boolean
addAll
(int i, Collection o) boolean
addAll
(Collection o) void
clear()
boolean
boolean
boolean
get
(int i) private List
int
hashCode()
int
boolean
isEmpty()
iterator()
int
listIterator
(int i) remove
(int i) boolean
boolean
boolean
int
size()
subList
(int f, int l) Object[]
toArray()
Object[]
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface java.util.Collection
parallelStream, removeIf, stream
Methods 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:
clear
in interfaceCollection
- Specified by:
clear
in interfaceList
-
remove
- Specified by:
remove
in interfaceCollection
- Specified by:
remove
in interfaceList
-
removeAll
- Specified by:
removeAll
in interfaceCollection
- Specified by:
removeAll
in interfaceList
-
retainAll
- Specified by:
retainAll
in interfaceCollection
- Specified by:
retainAll
in interfaceList
-
size
public int size()- Specified by:
size
in interfaceCollection
- Specified by:
size
in interfaceList
-
isEmpty
public boolean isEmpty()- Specified by:
isEmpty
in interfaceCollection
- Specified by:
isEmpty
in interfaceList
-
contains
- Specified by:
contains
in interfaceCollection
- Specified by:
contains
in interfaceList
-
containsAll
- Specified by:
containsAll
in interfaceCollection
- Specified by:
containsAll
in interfaceList
-
toArray
- Specified by:
toArray
in interfaceCollection
- Specified by:
toArray
in interfaceList
-
toArray
- Specified by:
toArray
in interfaceCollection
- Specified by:
toArray
in interfaceList
-
equals
-
hashCode
public int hashCode() -
add
- Specified by:
add
in interfaceCollection
- Specified by:
add
in interfaceList
-
addAll
- Specified by:
addAll
in interfaceCollection
- Specified by:
addAll
in interfaceList
-
add
-
addAll
-
remove
-
set
-
iterator
-
listIterator
- Specified by:
listIterator
in interfaceList
-
listIterator
- Specified by:
listIterator
in interfaceList
-
get
-
indexOf
-
lastIndexOf
- Specified by:
lastIndexOf
in interfaceList
-
subList
-