net.ontopia.utils
Class GrabberIterator<O,G>

java.lang.Object
  extended by net.ontopia.utils.GrabberIterator<O,G>
All Implemented Interfaces:
java.util.Iterator<G>

public class GrabberIterator<O,G>
extends java.lang.Object
implements java.util.Iterator<G>

INTERNAL: An iterator that uses a grabber to grab object from another iterator.


Field Summary
protected  GrabberIF<O,G> grabber
           
protected  java.util.Iterator<O> iter
           
 
Constructor Summary
GrabberIterator(java.util.Iterator<O> iter, GrabberIF<O,G> grabber)
           
 
Method Summary
 boolean hasNext()
           
 G next()
           
 void remove()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

iter

protected java.util.Iterator<O> iter

grabber

protected GrabberIF<O,G> grabber
Constructor Detail

GrabberIterator

public GrabberIterator(java.util.Iterator<O> iter,
                       GrabberIF<O,G> grabber)
Method Detail

hasNext

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

next

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

remove

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


Copyright © 2000-2012 Ontopia.