bpiwowar.argparser.utils
Class AbstractIterator<E>

java.lang.Object
  extended by 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
           
 
Constructor Summary
AbstractIterator()
           
 
Method Summary
 boolean hasNext()
           
 E next()
           
 void remove()
           
protected  void store(E e)
           
protected abstract  boolean storeNext()
          Stores a new element in value
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

value

protected E value
Constructor Detail

AbstractIterator

public AbstractIterator()
Method Detail

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.