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