org.jrdf.util
Class ClosableIterators

java.lang.Object
  extended by org.jrdf.util.ClosableIterators

public final class ClosableIterators
extends Object


Method Summary
static
<B,T,F extends ClosableIterable<B>>
T
with(F from, Function<T,ClosableIterable<B>> func)
          Processes a ClosableIterator with a given function (the function should apply the iterator to member variables).
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

with

public static <B,T,F extends ClosableIterable<B>> T with(F from,
                                                         Function<T,ClosableIterable<B>> func)
Processes a ClosableIterator with a given function (the function should apply the iterator to member variables).

Parameters:
from - the closable iterator.
func - the function to apply to the iterator.
Returns:
if the iterator contains values (indicates that the function has been applied).