Class StreamUtils.IteratorOverEnumerable<T,R,E>
java.lang.Object
com.google.common.collect.UnmodifiableIterator<T>
com.google.common.collect.AbstractIterator<T>
org.aksw.commons.collections.utils.StreamUtils.IteratorOverEnumerable<T,R,E>
- All Implemented Interfaces:
AutoCloseable,Iterator<T>
- Enclosing class:
- StreamUtils
public static class StreamUtils.IteratorOverEnumerable<T,R,E>
extends com.google.common.collect.AbstractIterator<T>
implements AutoCloseable
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected ThrowingBiConsumer<? super R,? super E> protected Eprotected BiPredicate<T,? super E> protected booleanprotected ThrowingFunction<? super E,T> protected Rprotected ThrowingFunction<? super R,E> -
Constructor Summary
ConstructorsConstructorDescriptionIteratorOverEnumerable(Callable<R> resourceSupplier, ThrowingFunction<? super R, E> toEnumerable, ThrowingFunction<? super E, T> nextRecord, BiPredicate<T, ? super E> hasEnded, ThrowingBiConsumer<? super R, ? super E> closer) -
Method Summary
Methods inherited from class com.google.common.collect.AbstractIterator
endOfData, hasNext, next, peekMethods inherited from class com.google.common.collect.UnmodifiableIterator
removeMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.util.Iterator
forEachRemaining
-
Field Details
-
resourceSupplier
-
toEnumerable
-
nextRecord
-
hasEnded
-
closer
-
isClosed
protected boolean isClosed -
resource
-
enumerable
-
-
Constructor Details
-
IteratorOverEnumerable
public IteratorOverEnumerable(Callable<R> resourceSupplier, ThrowingFunction<? super R, E> toEnumerable, ThrowingFunction<? super E, T> nextRecord, BiPredicate<T, ? super E> hasEnded, ThrowingBiConsumer<? super R, ? super E> closer)
-
-
Method Details
-
computeNext
- Specified by:
computeNextin classcom.google.common.collect.AbstractIterator<T>
-
close
public void close()- Specified by:
closein interfaceAutoCloseable
-