com.caucho.quercus.lib.spl
Class AbstractIteratorImpl<T>

java.lang.Object
  extended by com.caucho.quercus.lib.spl.AbstractIteratorImpl<T>
All Implemented Interfaces:
java.util.Iterator<T>
Direct Known Subclasses:
IteratorDelegate.EntryIterator, IteratorDelegate.KeyIterator, IteratorDelegate.ValueIterator

public abstract class AbstractIteratorImpl<T>
extends java.lang.Object
implements java.util.Iterator<T>


Field Summary
protected  Env _env
           
protected  ObjectValue _obj
           
protected  QuercusClass _qClass
           
 
Constructor Summary
AbstractIteratorImpl(Env env, ObjectValue obj)
           
 
Method Summary
protected abstract  T getCurrent()
           
protected  Value getCurrentKey()
           
protected  Value getCurrentValue()
           
 boolean hasNext()
           
 T next()
           
 void remove()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

_env

protected final Env _env

_obj

protected final ObjectValue _obj

_qClass

protected final QuercusClass _qClass
Constructor Detail

AbstractIteratorImpl

public AbstractIteratorImpl(Env env,
                            ObjectValue obj)
Method Detail

hasNext

public boolean hasNext()
Specified by:
hasNext in interface java.util.Iterator<T>

next

public T next()
Specified by:
next in interface java.util.Iterator<T>

getCurrent

protected abstract T getCurrent()

getCurrentKey

protected Value getCurrentKey()

getCurrentValue

protected Value getCurrentValue()

remove

public void remove()
Specified by:
remove in interface java.util.Iterator<T>