protected static final class AbstractPassage.VerseRangeIterator extends Object implements Iterator<VerseRange>
Modifier and Type | Field and Description |
---|---|
private Iterator<Key> |
it
The Iterator that we are proxying to
|
private VerseRange |
nextRange
What is the next VerseRange to be considered
|
private Verse |
nextVerse
What is the next Verse to be considered
|
private RestrictionType |
restrict
Do we restrict ranges to not crossing chapter boundaries
|
private Versification |
v11n
The Versification to which these verses belong.
|
Modifier | Constructor and Description |
---|---|
protected |
AbstractPassage.VerseRangeIterator(Versification v11n,
Iterator<Key> it,
RestrictionType restrict)
iterate, amalgamating Verses into VerseRanges
|
Modifier and Type | Method and Description |
---|---|
private void |
calculateNext()
Find the next VerseRange
|
boolean |
hasNext() |
VerseRange |
next() |
void |
remove() |
private Versification v11n
private VerseRange nextRange
private Verse nextVerse
private RestrictionType restrict
protected AbstractPassage.VerseRangeIterator(Versification v11n, Iterator<Key> it, RestrictionType restrict)
public boolean hasNext()
hasNext
in interface Iterator<VerseRange>
public VerseRange next() throws NoSuchElementException
next
in interface Iterator<VerseRange>
NoSuchElementException
public void remove() throws UnsupportedOperationException
remove
in interface Iterator<VerseRange>
UnsupportedOperationException
private void calculateNext()