public interface TLongStream extends TBaseStream<Long,TLongStream>
Modifier and Type | Interface and Description |
---|---|
static interface |
TLongStream.Builder |
isParallel, onClose, parallel, sequential, unordered
close
TLongStream filter(LongPredicate predicate)
TLongStream map(LongUnaryOperator mapper)
<U> TStream<U> mapToObj(LongFunction<? extends U> mapper)
TIntStream mapToInt(LongToIntFunction mapper)
TDoubleStream mapToDouble(LongToDoubleFunction mapper)
TLongStream flatMap(LongFunction<? extends TLongStream> mapper)
TLongStream distinct()
TLongStream sorted()
TLongStream peek(LongConsumer action)
TLongStream limit(long maxSize)
TLongStream skip(long n)
void forEach(LongConsumer action)
void forEachOrdered(LongConsumer action)
long[] toArray()
long reduce(long identity, LongBinaryOperator accumulator)
OptionalLong reduce(LongBinaryOperator op)
<R> R collect(Supplier<R> supplier, ObjLongConsumer<R> accumulator, BiConsumer<R,R> combiner)
long sum()
OptionalLong min()
OptionalLong max()
long count()
OptionalDouble average()
boolean anyMatch(LongPredicate predicate)
boolean allMatch(LongPredicate predicate)
boolean noneMatch(LongPredicate predicate)
OptionalLong findFirst()
OptionalLong findAny()
TDoubleStream asDoubleStream()
PrimitiveIterator.OfLong iterator()
iterator
in interface TBaseStream<Long,TLongStream>
Spliterator.OfLong spliterator()
spliterator
in interface TBaseStream<Long,TLongStream>
static TLongStream.Builder builder()
static TLongStream empty()
static TLongStream of(long t)
static TLongStream of(long... values)
static TLongStream iterate(long seed, LongUnaryOperator f)
static TLongStream generate(LongSupplier s)
static TLongStream range(long startInclusive, long endExclusive)
static TLongStream rangeClosed(long startInclusive, long endInclusive)
static TLongStream concat(TLongStream a, TLongStream b)
Copyright © 2019. All rights reserved.