Package com.yahoo.prelude.hitfield
Class TokenFieldIterator
- java.lang.Object
-
- com.yahoo.prelude.hitfield.TokenFieldIterator
-
- All Implemented Interfaces:
Iterator<FieldPart>
,ListIterator<FieldPart>
public class TokenFieldIterator extends Object implements ListIterator<FieldPart>
A specialized list iterator to manipulate tokens in HitField objects.- Author:
- Steinar Knutsen
-
-
Constructor Summary
Constructors Constructor Description TokenFieldIterator(List<FieldPart> fieldList, HitField hitField)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
add(FieldPart o)
boolean
hasNext()
boolean
hasPrevious()
FieldPart
next()
int
nextIndex()
FieldPart
previous()
int
previousIndex()
void
remove()
void
set(FieldPart o)
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface java.util.Iterator
forEachRemaining
-
-
-
-
Method Detail
-
add
public void add(FieldPart o)
- Specified by:
add
in interfaceListIterator<FieldPart>
-
hasNext
public boolean hasNext()
-
hasPrevious
public boolean hasPrevious()
- Specified by:
hasPrevious
in interfaceListIterator<FieldPart>
-
next
public FieldPart next()
-
nextIndex
public int nextIndex()
- Specified by:
nextIndex
in interfaceListIterator<FieldPart>
-
previous
public FieldPart previous()
- Specified by:
previous
in interfaceListIterator<FieldPart>
-
previousIndex
public int previousIndex()
- Specified by:
previousIndex
in interfaceListIterator<FieldPart>
-
remove
public void remove()
-
set
public void set(FieldPart o)
- Specified by:
set
in interfaceListIterator<FieldPart>
-
-