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