public class TLimitingStreamImpl<T> extends TSimpleStreamImpl<T>
TStream.Builder<T>
Constructor and Description |
---|
TLimitingStreamImpl(TSimpleStreamImpl<T> sourceStream,
int limit) |
Modifier and Type | Method and Description |
---|---|
void |
close() |
protected int |
estimateSize() |
boolean |
next(Predicate<? super T> consumer) |
allMatch, anyMatch, collect, collect, count, distinct, 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 TLimitingStreamImpl(TSimpleStreamImpl<T> sourceStream, int limit)
public boolean next(Predicate<? super T> consumer)
next
in class TSimpleStreamImpl<T>
protected int estimateSize()
estimateSize
in class TSimpleStreamImpl<T>
public void close() throws Exception
close
in interface AutoCloseable
close
in class TSimpleStreamImpl<T>
Exception
Copyright © 2019. All rights reserved.