us.zuercher.gpx2map.coord.test
Class ConversionsTestCoordLoader.EquivIterator

java.lang.Object
  extended by us.zuercher.gpx2map.coord.test.ConversionsTestCoordLoader.EquivIterator
All Implemented Interfaces:
Iterator<ConversionsTestCoordLoader.Equivalence>
Enclosing class:
ConversionsTestCoordLoader

private class ConversionsTestCoordLoader.EquivIterator
extends Object
implements Iterator<ConversionsTestCoordLoader.Equivalence>

EquivIterator iterates over a BufferedReader and constructs ConversionsTestCoordLoader.Equivalence objects as necessary to support the Iterator API.


Field Summary
private  String line
           
private  BufferedReader reader
           
 
Constructor Summary
private ConversionsTestCoordLoader.EquivIterator(BufferedReader reader)
           
 
Method Summary
 boolean hasNext()
          Test if there's another Equivalence object available.
 ConversionsTestCoordLoader.Equivalence next()
          Construct and return the next Equivalence object in the file.
 void remove()
          Remove is not supported by this iterator.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

reader

private final BufferedReader reader

line

private String line
Constructor Detail

ConversionsTestCoordLoader.EquivIterator

private ConversionsTestCoordLoader.EquivIterator(BufferedReader reader)
Method Detail

hasNext

public boolean hasNext()
Test if there's another Equivalence object available.

Specified by:
hasNext in interface Iterator<ConversionsTestCoordLoader.Equivalence>
Returns:
true if a call to next() will succeed.

next

public ConversionsTestCoordLoader.Equivalence next()
Construct and return the next Equivalence object in the file.

Specified by:
next in interface Iterator<ConversionsTestCoordLoader.Equivalence>
Returns:
an Equivalence object
Throws:
NoSuchElementException - if there are no more Equivalences to return

remove

public void remove()
Remove is not supported by this iterator.

Specified by:
remove in interface Iterator<ConversionsTestCoordLoader.Equivalence>