org.crosswire.jsword.passage
Class AbstractPassage.VerseRangeIterator

java.lang.Object
  extended by org.crosswire.jsword.passage.AbstractPassage.VerseRangeIterator
All Implemented Interfaces:
Iterator
Enclosing class:
AbstractPassage

protected static final class AbstractPassage.VerseRangeIterator
extends Object
implements Iterator

Skip over verses that are part of a range


Field Summary
private  Iterator it
          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
private  RestrictionType restrict
          Do we restrict ranges to not crossing chapter boundries
 
Constructor Summary
protected AbstractPassage.VerseRangeIterator(Iterator it, RestrictionType restrict)
          iterate, amalgumating Verses into VerseRanges
 
Method Summary
private  void calculateNext()
          Find the next VerseRange
 boolean hasNext()
           
 Object next()
           
 void remove()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

it

private Iterator it
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


restrict

private RestrictionType restrict
Do we restrict ranges to not crossing chapter boundries

Constructor Detail

AbstractPassage.VerseRangeIterator

protected AbstractPassage.VerseRangeIterator(Iterator it,
                                             RestrictionType restrict)
iterate, amalgumating Verses into VerseRanges

Method Detail

hasNext

public boolean hasNext()
Specified by:
hasNext in interface Iterator

next

public Object next()
            throws NoSuchElementException
Specified by:
next in interface Iterator
Throws:
NoSuchElementException

remove

public void remove()
            throws UnsupportedOperationException
Specified by:
remove in interface Iterator
Throws:
UnsupportedOperationException

calculateNext

private void calculateNext()
Find the next VerseRange


Copyright ยจ 2003-2007