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