Modifier and Type | Field and Description |
---|---|
private boolean |
canRemove
Whether the iterator is in a state where remove is OK
|
private HitGroup |
hitGroup
The result the hits belong to
|
private List<Hit> |
hits
The list of hits to iterate over
|
private int |
index
The index into the list of hits
|
Constructor and Description |
---|
HitIterator(HitGroup hitGroup,
List<Hit> hits) |
HitIterator(Result result,
List<Hit> hits) |
Modifier and Type | Method and Description |
---|---|
boolean |
hasNext() |
Hit |
next() |
void |
remove() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
forEachRemaining
private int index
private HitGroup hitGroup
private boolean canRemove
public Hit next() throws NoSuchElementException
next
in interface Iterator<Hit>
NoSuchElementException
public void remove() throws IllegalStateException
remove
in interface Iterator<Hit>
IllegalStateException
Copyright © 2018. All rights reserved.