org.databene.commons.iterator
Class DefaultTypedIterable<E>

java.lang.Object
  extended by org.databene.commons.iterator.DefaultTypedIterable<E>
All Implemented Interfaces:
java.lang.Iterable<E>, TypedIterable<E>

public class DefaultTypedIterable<E>
extends java.lang.Object
implements TypedIterable<E>

Iterable proxy that adds type information to an untyped Iterable.

Created: 02.09.2007 23:29:10

Author:
Volker Bergmann

Constructor Summary
DefaultTypedIterable(java.lang.Class<E> type, java.lang.Iterable<E> iterable)
           
 
Method Summary
 java.lang.Class<E> getType()
           
 java.util.Iterator<E> iterator()
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DefaultTypedIterable

public DefaultTypedIterable(java.lang.Class<E> type,
                            java.lang.Iterable<E> iterable)
Method Detail

getType

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

iterator

public java.util.Iterator<E> iterator()
Specified by:
iterator in interface java.lang.Iterable<E>

toString

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


Copyright © 2010. All Rights Reserved.