Package org.apache.commons.collections
Class FastArrayList.SubList.SubListIter
- java.lang.Object
-
- org.apache.commons.collections.FastArrayList.SubList.SubListIter
-
- All Implemented Interfaces:
java.util.Iterator
,java.util.ListIterator
- Enclosing class:
- FastArrayList.SubList
private class FastArrayList.SubList.SubListIter extends java.lang.Object implements java.util.ListIterator
-
-
Field Summary
Fields Modifier and Type Field Description private java.util.List
expected
private java.util.ListIterator
iter
private int
lastReturnedIndex
-
Constructor Summary
Constructors Constructor Description SubListIter(int i)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
add(java.lang.Object o)
private void
checkMod()
(package private) java.util.List
get()
boolean
hasNext()
boolean
hasPrevious()
java.lang.Object
next()
int
nextIndex()
java.lang.Object
previous()
int
previousIndex()
void
remove()
void
set(java.lang.Object o)
-
-
-
Method Detail
-
checkMod
private void checkMod()
-
get
java.util.List get()
-
hasNext
public boolean hasNext()
- Specified by:
hasNext
in interfacejava.util.Iterator
- Specified by:
hasNext
in interfacejava.util.ListIterator
-
next
public java.lang.Object next()
- Specified by:
next
in interfacejava.util.Iterator
- Specified by:
next
in interfacejava.util.ListIterator
-
hasPrevious
public boolean hasPrevious()
- Specified by:
hasPrevious
in interfacejava.util.ListIterator
-
previous
public java.lang.Object previous()
- Specified by:
previous
in interfacejava.util.ListIterator
-
previousIndex
public int previousIndex()
- Specified by:
previousIndex
in interfacejava.util.ListIterator
-
nextIndex
public int nextIndex()
- Specified by:
nextIndex
in interfacejava.util.ListIterator
-
remove
public void remove()
- Specified by:
remove
in interfacejava.util.Iterator
- Specified by:
remove
in interfacejava.util.ListIterator
-
set
public void set(java.lang.Object o)
- Specified by:
set
in interfacejava.util.ListIterator
-
add
public void add(java.lang.Object o)
- Specified by:
add
in interfacejava.util.ListIterator
-
-