org.neo4j.helpers.collection
Class IterableWrapper<T,U>
java.lang.Object
org.neo4j.helpers.collection.IterableWrapper<T,U>
- Type Parameters:
T
- the type of items to returnU
- the type of items to wrap/convert from
- All Implemented Interfaces:
- Iterable<T>
public abstract class IterableWrapper<T,U>
- extends Object
- implements Iterable<T>
Wraps an Iterable
so that it returns items of another type. The
iteration is done lazily.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
IterableWrapper
public IterableWrapper(Iterable<U> iterableToWrap)
underlyingObjectToObject
protected abstract T underlyingObjectToObject(U object)
iterator
public Iterator<T> iterator()
- Specified by:
iterator
in interface Iterable<T>
Copyright © 2002-2012 The Neo4j Graph Database Project. All Rights Reserved.