org.databene.commons.converter
Class ConvertingIterable<S,T>

java.lang.Object
  extended by org.databene.commons.converter.ConvertingIterable<S,T>
All Implemented Interfaces:
java.lang.Iterable<T>, HeavyweightIterable<T>, HeavyweightTypedIterable<T>, TypedIterable<T>

public class ConvertingIterable<S,T>
extends java.lang.Object
implements HeavyweightTypedIterable<T>

Iterable that provides ConvertingIterators.

Created: 28.08.2007 08:57:16

Author:
Volker Bergmann

Field Summary
protected  Converter<S,T> converter
           
protected  java.lang.Iterable<S> iterable
           
 
Constructor Summary
ConvertingIterable(java.lang.Iterable<S> iterable, Converter<S,T> converter)
           
 
Method Summary
 void close()
           
 java.lang.Class<T> getType()
           
 HeavyweightIterator<T> iterator()
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

iterable

protected java.lang.Iterable<S> iterable

converter

protected Converter<S,T> converter
Constructor Detail

ConvertingIterable

public ConvertingIterable(java.lang.Iterable<S> iterable,
                          Converter<S,T> converter)
Method Detail

getType

public java.lang.Class<T> getType()
Specified by:
getType in interface TypedIterable<T>

iterator

public HeavyweightIterator<T> iterator()
Specified by:
iterator in interface java.lang.Iterable<T>
Specified by:
iterator in interface HeavyweightIterable<T>

close

public void close()

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object


Copyright © 2010. All Rights Reserved.