org.neo4j.helpers.collection
Class IteratorWrapper<T,U>
java.lang.Object
org.neo4j.helpers.collection.IteratorWrapper<T,U>
- Type Parameters:
T
- the type of items to returnU
- the type of items to wrap/convert from
- All Implemented Interfaces:
- Iterator<T>
public abstract class IteratorWrapper<T,U>
- extends Object
- implements Iterator<T>
Wraps an Iterator
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 |
IteratorWrapper
public IteratorWrapper(Iterator<U> iteratorToWrap)
hasNext
public boolean hasNext()
- Specified by:
hasNext
in interface Iterator<T>
next
public T next()
- Specified by:
next
in interface Iterator<T>
remove
public void remove()
- Specified by:
remove
in interface Iterator<T>
underlyingObjectToObject
protected abstract T underlyingObjectToObject(U object)
Copyright © 2002-2013 The Neo4j Graph Database Project. All Rights Reserved.