org.crosswire.jsword.passage
Class RangedPassage.VerseRangeIterator

java.lang.Object
  extended by org.crosswire.jsword.passage.RangedPassage.VerseRangeIterator
All Implemented Interfaces:
Iterator<Key>
Enclosing class:
RangedPassage

private static final class RangedPassage.VerseRangeIterator
extends Object
implements Iterator<Key>

Loop over the VerseRanges and check that they do not require digging into


Field Summary
private  VerseRange next
          What are we going to reply with next?
private  Iterator<Key> real
          Where we read our base ranges from
private  RestrictionType restrict
          Where do we break ranges
 
Constructor Summary
RangedPassage.VerseRangeIterator(Iterator<Key> it, RestrictionType restrict)
          Simple ctor
 
Method Summary
 boolean hasNext()
           
 Key next()
           
 void remove()
           
private  Key replyNext()
          The next object is correct, use that one
private  Key splitNext()
          The next object is too big, so cut it up
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

next

private VerseRange next
What are we going to reply with next?


restrict

private RestrictionType restrict
Where do we break ranges


real

private Iterator<Key> real
Where we read our base ranges from

Constructor Detail

RangedPassage.VerseRangeIterator

public RangedPassage.VerseRangeIterator(Iterator<Key> it,
                                        RestrictionType restrict)
Simple ctor

Method Detail

remove

public void remove()
Specified by:
remove in interface Iterator<Key>

hasNext

public boolean hasNext()
Specified by:
hasNext in interface Iterator<Key>

next

public Key next()
Specified by:
next in interface Iterator<Key>

replyNext

private Key replyNext()
The next object is correct, use that one


splitNext

private Key splitNext()
The next object is too big, so cut it up


Copyright ? 2003-2011