public abstract class TSimpleLongStreamImpl extends Object implements TLongStream
TLongStream.Builder
Constructor and Description |
---|
TSimpleLongStreamImpl() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
builder, concat, empty, generate, iterate, of, of, range, rangeClosed
public TLongStream filter(LongPredicate predicate)
filter
in interface TLongStream
public TLongStream map(LongUnaryOperator mapper)
map
in interface TLongStream
public <U> TStream<U> mapToObj(LongFunction<? extends U> mapper)
mapToObj
in interface TLongStream
public TIntStream mapToInt(LongToIntFunction mapper)
mapToInt
in interface TLongStream
public TDoubleStream mapToDouble(LongToDoubleFunction mapper)
mapToDouble
in interface TLongStream
public TLongStream flatMap(LongFunction<? extends TLongStream> mapper)
flatMap
in interface TLongStream
public TLongStream distinct()
distinct
in interface TLongStream
public TLongStream sorted()
sorted
in interface TLongStream
public TLongStream peek(LongConsumer action)
peek
in interface TLongStream
public TLongStream limit(long maxSize)
limit
in interface TLongStream
public TLongStream skip(long n)
skip
in interface TLongStream
public void forEach(LongConsumer action)
forEach
in interface TLongStream
public void forEachOrdered(LongConsumer action)
forEachOrdered
in interface TLongStream
public long[] toArray()
toArray
in interface TLongStream
public long reduce(long identity, LongBinaryOperator accumulator)
reduce
in interface TLongStream
public OptionalLong reduce(LongBinaryOperator accumulator)
reduce
in interface TLongStream
public <R> R collect(Supplier<R> supplier, ObjLongConsumer<R> accumulator, BiConsumer<R,R> combiner)
collect
in interface TLongStream
public OptionalLong min()
min
in interface TLongStream
public OptionalLong max()
max
in interface TLongStream
public long count()
count
in interface TLongStream
public long sum()
sum
in interface TLongStream
public OptionalDouble average()
average
in interface TLongStream
public boolean anyMatch(LongPredicate predicate)
anyMatch
in interface TLongStream
public boolean allMatch(LongPredicate predicate)
allMatch
in interface TLongStream
public boolean noneMatch(LongPredicate predicate)
noneMatch
in interface TLongStream
public OptionalLong findFirst()
findFirst
in interface TLongStream
public OptionalLong findAny()
findAny
in interface TLongStream
public TDoubleStream asDoubleStream()
asDoubleStream
in interface TLongStream
public PrimitiveIterator.OfLong iterator()
iterator
in interface TBaseStream<Long,TLongStream>
iterator
in interface TLongStream
public Spliterator.OfLong spliterator()
spliterator
in interface TBaseStream<Long,TLongStream>
spliterator
in interface TLongStream
public TStream<Long> boxed()
boxed
in interface TLongStream
public boolean isParallel()
isParallel
in interface TBaseStream<Long,TLongStream>
public TLongStream sequential()
sequential
in interface TBaseStream<Long,TLongStream>
public TLongStream parallel()
parallel
in interface TBaseStream<Long,TLongStream>
public TLongStream unordered()
unordered
in interface TBaseStream<Long,TLongStream>
public TLongStream onClose(Runnable closeHandler)
onClose
in interface TBaseStream<Long,TLongStream>
public void close() throws Exception
close
in interface AutoCloseable
Exception
protected int estimateSize()
public abstract boolean next(LongPredicate consumer)
Copyright © 2019. All rights reserved.