Neo4j Enterprise

org.neo4j.helpers.collection
Class IterableWrapper<T,U>

java.lang.Object
  extended by org.neo4j.helpers.collection.IterableWrapper<T,U>
Type Parameters:
T - the type of items to return
U - the type of items to wrap/convert from
All Implemented Interfaces:
java.lang.Iterable<T>

public abstract class IterableWrapper<T,U>
extends java.lang.Object
implements java.lang.Iterable<T>

Wraps an Iterable so that it returns items of another type. The iteration is done lazily.


Constructor Summary
IterableWrapper(java.lang.Iterable<U> iterableToWrap)
           
 
Method Summary
 java.util.Iterator<T> iterator()
           
protected abstract  T underlyingObjectToObject(U object)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IterableWrapper

public IterableWrapper(java.lang.Iterable<U> iterableToWrap)
Method Detail

underlyingObjectToObject

protected abstract T underlyingObjectToObject(U object)

iterator

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

Neo4j Enterprise

Copyright © 2002-2012 The Neo4j Graph Database Project. All Rights Reserved.