java.lang.Object
com.eireneh.bible.passage.AbstractPassage.VerseRangeEnumeration
- All Implemented Interfaces:
- java.util.Enumeration
- Enclosing class:
- AbstractPassage
- protected final class AbstractPassage.VerseRangeEnumeration
- extends java.lang.Object
- implements java.util.Enumeration
Skip over verses that are part of a range
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
en
private java.util.Enumeration en
- The Iterator that we are proxying to
next_range
private VerseRange next_range
- What is the next VerseRange to be considered
next_verse
private Verse next_verse
- What is the next Verse to be considered
AbstractPassage.VerseRangeEnumeration
public AbstractPassage.VerseRangeEnumeration()
- iterate, amalgumating Verses into VerseRanges
hasMoreElements
public final boolean hasMoreElements()
- Returns true if the iteration has more elements
- Specified by:
hasMoreElements in interface java.util.Enumeration
nextElement
public final java.lang.Object nextElement()
throws java.util.NoSuchElementException
- Returns the next element in the interation
- Specified by:
nextElement in interface java.util.Enumeration
calculateNext
private void calculateNext()
- Find the next VerseRange