saffron.runtime
Class BufferedIterator.Clonerator

java.lang.Object
  |
  +--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.


Field Summary
(package private)  Iterator iterator
           
(package private)  List list
           
 
Constructor Summary
(package private) BufferedIterator.Clonerator(Iterator iterator, List list)
           
 
Method Summary
 boolean hasNext()
           
 Object next()
           
 void remove()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

iterator

Iterator iterator

list

List list
Constructor Detail

BufferedIterator.Clonerator

BufferedIterator.Clonerator(Iterator iterator,
                            List list)
Method Detail

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

SourceForge.net_Logo