org.openanzo.jastor
Class FilteredMappedIterator<E,F,G>

java.lang.Object
  extended by org.openanzo.jastor.FilteredMappedIterator<E,F,G>
Type Parameters:
E - Type of objects that iterator provides to calling methods. You get this type after calling postmap on interim object
F - Type of object that preMap converts parent objects into, as well as type of object that the accept filter is run against
G - Type of objects contained within the parent iterator
All Implemented Interfaces:
info.aduna.collections.iterators.CloseableIterator<E>, java.io.Closeable, java.util.Iterator<E>
Direct Known Subclasses:
PropertyIterator

public abstract class FilteredMappedIterator<E,F,G>
extends java.lang.Object
implements info.aduna.collections.iterators.CloseableIterator<E>

Iterator that filters the contents of a parent iterator.

Author:
Ben Szekely ( bhszekel@us.ibm.com )

Method Summary
 void close()
           
 boolean hasNext()
           
 E next()
           
 void remove()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

close

public void close()
Specified by:
close in interface info.aduna.collections.iterators.CloseableIterator<E>
Specified by:
close in interface java.io.Closeable

next

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

hasNext

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

remove

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


Copyright © 2007 Cambridge Semantics Inc.. All Rights Reserved.