info.aduna.collections.iterators
Class ConvertingIterator<S,T>

java.lang.Object
  extended by info.aduna.iteration.CloseableIterationBase<T,X>
      extended by info.aduna.iteration.ConvertingIteration<S,T,RuntimeException>
          extended by info.aduna.collections.iterators.ConvertingIterator<S,T>
All Implemented Interfaces:
CloseableIterator<T>, CloseableIteration<T,RuntimeException>, Iteration<T,RuntimeException>, Closeable, Iterator<T>

public abstract class ConvertingIterator<S,T>
extends ConvertingIteration<S,T,RuntimeException>
implements CloseableIterator<T>

A CloseableIterator that converts an iterator over objects of type S (the source type) to an iterator over objects of type T (the target type).


Field Summary
 
Fields inherited from class info.aduna.iteration.CloseableIterationBase
logger
 
Constructor Summary
ConvertingIterator(Iterator<? extends S> iter)
           
 
Method Summary
 
Methods inherited from class info.aduna.iteration.ConvertingIteration
convert, handleClose, hasNext, next, remove
 
Methods inherited from class info.aduna.iteration.CloseableIterationBase
close, isClosed
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface info.aduna.collections.iterators.CloseableIterator
close
 
Methods inherited from interface java.util.Iterator
hasNext, next, remove
 

Constructor Detail

ConvertingIterator

public ConvertingIterator(Iterator<? extends S> iter)


Copyright © 1997-2008 Aduna. All Rights Reserved.