Package com.strobel.expressions
Class ExpressionList.ExpressionListIterator
- java.lang.Object
-
- com.strobel.expressions.ExpressionList.ExpressionListIterator
-
- All Implemented Interfaces:
java.util.Iterator<T>
,java.util.ListIterator<T>
- Enclosing class:
- ExpressionList<T extends Expression>
private final class ExpressionList.ExpressionListIterator extends java.lang.Object implements java.util.ListIterator<T>
-
-
Field Summary
Fields Modifier and Type Field Description private int
_position
-
Constructor Summary
Constructors Constructor Description ExpressionListIterator()
ExpressionListIterator(int startPosition)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
add(T expression)
boolean
hasNext()
boolean
hasPrevious()
T
next()
int
nextIndex()
T
previous()
int
previousIndex()
void
remove()
void
set(T expression)
-
-
-
Method Detail
-
hasNext
public boolean hasNext()
- Specified by:
hasNext
in interfacejava.util.Iterator<T extends Expression>
- Specified by:
hasNext
in interfacejava.util.ListIterator<T extends Expression>
-
next
public T next()
- Specified by:
next
in interfacejava.util.Iterator<T extends Expression>
- Specified by:
next
in interfacejava.util.ListIterator<T extends Expression>
-
hasPrevious
public boolean hasPrevious()
- Specified by:
hasPrevious
in interfacejava.util.ListIterator<T extends Expression>
-
previous
public T previous()
- Specified by:
previous
in interfacejava.util.ListIterator<T extends Expression>
-
nextIndex
public int nextIndex()
- Specified by:
nextIndex
in interfacejava.util.ListIterator<T extends Expression>
-
previousIndex
public int previousIndex()
- Specified by:
previousIndex
in interfacejava.util.ListIterator<T extends Expression>
-
remove
public void remove()
- Specified by:
remove
in interfacejava.util.Iterator<T extends Expression>
- Specified by:
remove
in interfacejava.util.ListIterator<T extends Expression>
-
set
public void set(T expression)
- Specified by:
set
in interfacejava.util.ListIterator<T extends Expression>
-
add
public void add(T expression)
- Specified by:
add
in interfacejava.util.ListIterator<T extends Expression>
-
-