public interface IntStream extends BaseStream<Integer,IntStream>
Modifier and Type | Interface and Description |
---|---|
static interface |
IntStream.Builder
See the
official Java API doc for details.
|
close, isParallel, onClose, unordered
static IntStream.Builder builder()
static IntStream empty()
static IntStream generate(IntSupplier s)
static IntStream iterate(int seed, IntUnaryOperator f)
static IntStream of(int... values)
static IntStream of(int t)
static IntStream range(int startInclusive, int endExclusive)
static IntStream rangeClosed(int startInclusive, int endInclusive)
boolean allMatch(IntPredicate predicate)
boolean anyMatch(IntPredicate predicate)
DoubleStream asDoubleStream()
LongStream asLongStream()
OptionalDouble average()
<R> R collect(Supplier<R> supplier, ObjIntConsumer<R> accumulator, BiConsumer<R,R> combiner)
long count()
IntStream distinct()
IntStream filter(IntPredicate predicate)
OptionalInt findAny()
OptionalInt findFirst()
IntStream flatMap(IntFunction<? extends IntStream> mapper)
void forEach(IntConsumer action)
void forEachOrdered(IntConsumer action)
PrimitiveIterator.OfInt iterator()
iterator
in interface BaseStream<Integer,IntStream>
IntStream limit(long maxSize)
IntStream map(IntUnaryOperator mapper)
DoubleStream mapToDouble(IntToDoubleFunction mapper)
LongStream mapToLong(IntToLongFunction mapper)
<U> Stream<U> mapToObj(IntFunction<? extends U> mapper)
OptionalInt max()
OptionalInt min()
boolean noneMatch(IntPredicate predicate)
IntStream parallel()
parallel
in interface BaseStream<Integer,IntStream>
IntStream peek(IntConsumer action)
OptionalInt reduce(IntBinaryOperator op)
int reduce(int identity, IntBinaryOperator op)
IntStream sequential()
sequential
in interface BaseStream<Integer,IntStream>
IntStream skip(long n)
IntStream sorted()
Spliterator.OfInt spliterator()
spliterator
in interface BaseStream<Integer,IntStream>
int sum()
IntSummaryStatistics summaryStatistics()
int[] toArray()
Copyright © 2018. All rights reserved.