org.eclipse.higgins.idas.cp.rdf.util
Class MappingIterator

java.lang.Object
  extended byorg.eclipse.higgins.idas.cp.rdf.util.MappingIterator
All Implemented Interfaces:
Iterator

public abstract class MappingIterator
extends Object
implements Iterator

An iterator that reads elements from another iterator and maps them to its own elements.

Author:
msabadello at parityinc dot net

Constructor Summary
MappingIterator(Iterator iterator)
           
 
Method Summary
 boolean hasNext()
           
abstract  Object map(Object item)
           
 Object next()
           
 void remove()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MappingIterator

public MappingIterator(Iterator iterator)
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

map

public abstract Object map(Object item)