Neo4j Community

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

java.lang.Object
  extended by org.neo4j.helpers.collection.NestingIterable<T,U>
Type Parameters:
T - the type of items.
U - the type of items in the surface item iterator
All Implemented Interfaces:
Iterable<T>

public abstract class NestingIterable<T,U>
extends Object
implements Iterable<T>

Concatenates sub-iterables of an iterable.

See Also:
NestingIterator

Constructor Summary
NestingIterable(Iterable<U> source)
           
 
Method Summary
protected abstract  Iterator<T> createNestedIterator(U item)
           
 Iterator<T> iterator()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NestingIterable

public NestingIterable(Iterable<U> source)
Method Detail

iterator

public Iterator<T> iterator()
Specified by:
iterator in interface Iterable<T>

createNestedIterator

protected abstract Iterator<T> createNestedIterator(U item)

Neo4j Community

Copyright © 2011 The Neo4j Graph Database Project. All Rights Reserved.