net.sf.saffron.runtime
Class BufferedIterator.Clonerator
java.lang.Object
|
+--net.sf.saffron.runtime.BufferedIterator.Clonerator
- All Implemented Interfaces:
- Iterator
- Enclosing class:
- BufferedIterator
- private static class BufferedIterator.Clonerator
- extends Object
- implements Iterator
Reads from an iterator, duplicating elements into a list as it does so.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
iterator
Iterator iterator
list
List list
BufferedIterator.Clonerator
BufferedIterator.Clonerator(Iterator iterator,
List list)
hasNext
public boolean hasNext()
- Specified by:
hasNext
in interface Iterator
next
public Object next()
- Specified by:
next
in interface Iterator
remove
public void remove()
- Specified by:
remove
in interface Iterator