org.garret.perst
Class IterableIterator<T>

java.lang.Object
  extended by org.garret.perst.IterableIterator
All Implemented Interfaces:
java.lang.Iterable, java.util.Iterator

public abstract class IterableIterator<T>
extends java.lang.Object
implements java.lang.Iterable<T>, java.util.Iterator<T>

Interface combining both Iterable and Iterator functionality


Constructor Summary
IterableIterator()
           
 
Method Summary
 java.util.Iterator<T> iterator()
          This class itself is iterator
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface java.util.Iterator
hasNext, next, remove
 

Constructor Detail

IterableIterator

public IterableIterator()
Method Detail

iterator

public java.util.Iterator<T> iterator()
This class itself is iterator

Specified by:
iterator in interface java.lang.Iterable