org.crosswire.jsword.passage
Class PassageTally.OrderedVerseRangeIterator
java.lang.Object
org.crosswire.jsword.passage.PassageTally.OrderedVerseRangeIterator
- All Implemented Interfaces:
- Iterator
- Enclosing class:
- PassageTally
private static final class PassageTally.OrderedVerseRangeIterator
- extends Object
- implements Iterator
Iterate over the Ranges in order of their rank in the tally
- Author:
- Joe Walker
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
last
private PassageTally.TalliedVerseRange last
- So that we can get at the ranking of the given verse
it
private Iterator it
- The Iterator we are converting
PassageTally.OrderedVerseRangeIterator
public PassageTally.OrderedVerseRangeIterator(Iterator vit,
int[] board)
- Find the first unused verse
hasNext
public boolean hasNext()
- Specified by:
hasNext
in interface Iterator
next
public Object next()
throws NoSuchElementException
- Specified by:
next
in interface Iterator
- Throws:
NoSuchElementException
remove
public void remove()
throws UnsupportedOperationException
- Specified by:
remove
in interface Iterator
- Throws:
UnsupportedOperationException
lastRank
public int lastRank()
throws NoSuchElementException
- Returns:
- the next Verse in the interation
- Throws:
NoSuchElementException
- if hasNext() == false