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

Quick Search    Search Deep

com.eireneh.bible.passage
Class AbstractPassage.VerseRangeEnumeration  view AbstractPassage.VerseRangeEnumeration download AbstractPassage.VerseRangeEnumeration.java

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


Field Summary
private  java.util.Enumeration en
          The Iterator that we are proxying to
private  VerseRange next_range
          What is the next VerseRange to be considered
private  Verse next_verse
          What is the next Verse to be considered
 
Constructor Summary
AbstractPassage.VerseRangeEnumeration()
          iterate, amalgumating Verses into VerseRanges
 
Method Summary
private  void calculateNext()
          Find the next VerseRange
 boolean hasMoreElements()
          Returns true if the iteration has more elements
 java.lang.Object nextElement()
          Returns the next element in the interation
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

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

Constructor Detail

AbstractPassage.VerseRangeEnumeration

public AbstractPassage.VerseRangeEnumeration()
iterate, amalgumating Verses into VerseRanges

Method Detail

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