java.lang.Object
com.eireneh.bible.passage.RangedPassage.VerseEnumeration
- All Implemented Interfaces:
- java.util.Enumeration
- Enclosing class:
- RangedPassage
- private final class RangedPassage.VerseEnumeration
- extends java.lang.Object
- implements java.util.Enumeration
This class is here to prevent users of RangedPassage.iterator() from
altering the underlying store and getting us out of sync. Right
now there are no issues with someone else removing a RangedPassage
without telling us, however there may be some day, and I'm not
sure that we need the functionality right now.
Also buy using this we get to ensure synchronization.
Everything is final so to save the proxying performace hit.
|
Constructor Summary |
RangedPassage.VerseEnumeration()
Create a basic iterator that is a proxy for the RangedPassage Passages
iterator, with remove() overridden. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
real
private java.util.Iterator real
- The Iterator that we are proxying to
RangedPassage.VerseEnumeration
public RangedPassage.VerseEnumeration()
- Create a basic iterator that is a proxy for the RangedPassage Passages
iterator, with remove() overridden.
hasMoreElements
public final boolean hasMoreElements()
- Returns true if the iteration has more Verses.
Pass the request on to the real iterator.
- Specified by:
hasMoreElements in interface java.util.Enumeration
nextElement
public final java.lang.Object nextElement()
throws java.util.NoSuchElementException
- Returns the next Verse in the interation.
Pass the request on to the real iterator.
- Specified by:
nextElement in interface java.util.Enumeration