public class TLimitingLongStreamImpl extends TSimpleLongStreamImpl
TLongStream.Builder
Constructor and Description |
---|
TLimitingLongStreamImpl(TSimpleLongStreamImpl sourceStream,
int limit) |
Modifier and Type | Method and Description |
---|---|
void |
close() |
protected int |
estimateSize() |
boolean |
next(LongPredicate consumer) |
allMatch, anyMatch, asDoubleStream, average, boxed, collect, count, distinct, filter, findAny, findFirst, flatMap, forEach, forEachOrdered, isParallel, iterator, limit, map, mapToDouble, mapToInt, mapToObj, max, min, noneMatch, onClose, parallel, peek, reduce, reduce, sequential, skip, sorted, spliterator, sum, toArray, unordered
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
builder, concat, empty, generate, iterate, of, of, range, rangeClosed
public TLimitingLongStreamImpl(TSimpleLongStreamImpl sourceStream, int limit)
public boolean next(LongPredicate consumer)
next
in class TSimpleLongStreamImpl
protected int estimateSize()
estimateSize
in class TSimpleLongStreamImpl
public void close() throws Exception
close
in interface AutoCloseable
close
in class TSimpleLongStreamImpl
Exception
Copyright © 2019. All rights reserved.