us.zuercher.gpx2map.coord.test
Class ConversionsTestCoordLoader.EquivIterator
java.lang.Object
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.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
reader
private final BufferedReader reader
line
private String line
ConversionsTestCoordLoader.EquivIterator
private ConversionsTestCoordLoader.EquivIterator(BufferedReader reader)
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>