Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

com.eireneh.bible.passage
Class RangedPassage.VerseEnumeration  view RangedPassage.VerseEnumeration download RangedPassage.VerseEnumeration.java

java.lang.Object
  extended bycom.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.


Field Summary
private  java.util.Iterator real
          The Iterator that we are proxying to
 
Constructor Summary
RangedPassage.VerseEnumeration()
          Create a basic iterator that is a proxy for the RangedPassage Passages iterator, with remove() overridden.
 
Method Summary
 boolean hasMoreElements()
          Returns true if the iteration has more Verses.
 java.lang.Object nextElement()
          Returns the next Verse in the interation.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

real

private java.util.Iterator real
The Iterator that we are proxying to

Constructor Detail

RangedPassage.VerseEnumeration

public RangedPassage.VerseEnumeration()
Create a basic iterator that is a proxy for the RangedPassage Passages iterator, with remove() overridden.

Method Detail

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