bpiwowar.argparser.utils
Class AbstractIterator<E>
java.lang.Object
bpiwowar.argparser.utils.AbstractIterator<E>
- All Implemented Interfaces:
- Iterator<E>
public abstract class AbstractIterator<E>
- extends Object
- implements Iterator<E>
Field Summary |
protected E |
value
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
value
protected E value
AbstractIterator
public AbstractIterator()
storeNext
protected abstract boolean storeNext()
- Stores a new element in value
- Returns:
- true if there was a new element, false otherwise
store
protected final void store(E e)
hasNext
public final boolean hasNext()
- Specified by:
hasNext
in interface Iterator<E>
next
public final E next()
- Specified by:
next
in interface Iterator<E>
remove
public final void remove()
- Specified by:
remove
in interface Iterator<E>
Copyright © 2013. All Rights Reserved.