Neo4j Enterprise

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:
java.lang.Iterable<T>

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

Concatenates sub-iterables of an iterable.

See Also:
NestingIterator

Constructor Summary
NestingIterable(java.lang.Iterable<U> source)
           
 
Method Summary
protected abstract  java.util.Iterator<T> createNestedIterator(U item)
           
 java.util.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(java.lang.Iterable<U> source)
Method Detail

iterator

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

createNestedIterator

protected abstract java.util.Iterator<T> createNestedIterator(U item)

Neo4j Enterprise

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