public class TCloseHandlingStream<T> extends TSimpleStreamImpl<T>
TStream.Builder<T>
Constructor and Description |
---|
TCloseHandlingStream(TSimpleStreamImpl<T> innerStream,
Runnable closeHandler) |
Modifier and Type | Method and Description |
---|---|
void |
close() |
boolean |
next(Predicate<? super T> consumer) |
allMatch, anyMatch, collect, collect, count, distinct, estimateSize, filter, findAny, findFirst, flatMap, flatMapToDouble, flatMapToInt, flatMapToLong, forEach, forEachOrdered, isParallel, iterator, limit, map, mapToDouble, mapToInt, mapToLong, max, min, noneMatch, onClose, parallel, peek, reduce, reduce, reduce, sequential, skip, sorted, sorted, spliterator, toArray, toArray, unordered
public TCloseHandlingStream(TSimpleStreamImpl<T> innerStream, Runnable closeHandler)
public boolean next(Predicate<? super T> consumer)
next
in class TSimpleStreamImpl<T>
public void close() throws Exception
close
in interface AutoCloseable
close
in class TSimpleStreamImpl<T>
Exception
Copyright © 2019. All rights reserved.