Interface TIntStream
- All Superinterfaces:
AutoCloseable
,TBaseStream<Integer,TIntStream>
- All Known Implementing Classes:
TArrayIntStreamImpl
,TCloseHandlingIntStream
,TDistinctIntStreamImpl
,TEmptyIntStreamImpl
,TFilteringIntStreamImpl
,TFlatMappingIntStreamImpl
,TFlatMappingToIntStreamImpl
,TGenerateIntStream
,TGenericConcatIntStream
,TIterateIntStream
,TLimitingIntStreamImpl
,TMappingIntStreamImpl
,TMappingToIntStreamImpl
,TMappingToIntStreamImpl
,TMappingToIntStreamImpl
,TPeekingIntStreamImpl
,TRangeIntStream
,TSimpleIntStreamImpl
,TSingleIntStreamImpl
,TSkippingIntStreamImpl
,TSpecializedConcatIntStream
,TWrappingIntStreamImpl
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionboolean
allMatch(IntPredicate predicate)
boolean
anyMatch(IntPredicate predicate)
average()
boxed()
static TIntStream.Builder
builder()
<R> R
collect(Supplier<R> supplier, ObjIntConsumer<R> accumulator, BiConsumer<R,R> combiner)
static TIntStream
concat(TIntStream a, TIntStream b)
long
count()
distinct()
static TIntStream
empty()
filter(IntPredicate predicate)
findAny()
flatMap(IntFunction<? extends TIntStream> mapper)
void
forEach(IntConsumer action)
void
forEachOrdered(IntConsumer action)
static TIntStream
generate(IntSupplier s)
static TIntStream
iterate(int seed, IntUnaryOperator f)
iterator()
limit(long maxSize)
map(IntUnaryOperator mapper)
mapToDouble(IntToDoubleFunction mapper)
mapToLong(IntToLongFunction mapper)
<U> TStream<U>
mapToObj(IntFunction<? extends U> mapper)
max()
min()
boolean
noneMatch(IntPredicate predicate)
static TIntStream
of(int t)
static TIntStream
of(int... values)
peek(IntConsumer action)
static TIntStream
range(int startInclusive, int endExclusive)
static TIntStream
rangeClosed(int startInclusive, int endInclusive)
int
reduce(int identity, IntBinaryOperator accumulator)
reduce(IntBinaryOperator op)
skip(long n)
sorted()
int
sum()
int[]
toArray()
Methods inherited from interface java.lang.AutoCloseable
close
Methods inherited from interface org.teavm.classlib.java.util.stream.TBaseStream
isParallel, onClose, parallel, sequential, unordered
-
Method Details
-
filter
-
map
-
mapToObj
-
mapToLong
-
mapToDouble
-
flatMap
-
distinct
TIntStream distinct() -
sorted
TIntStream sorted() -
peek
-
limit
-
skip
-
forEach
-
forEachOrdered
-
toArray
int[] toArray() -
reduce
-
reduce
-
collect
-
sum
int sum() -
min
OptionalInt min() -
max
OptionalInt max() -
count
long count() -
average
OptionalDouble average() -
anyMatch
-
allMatch
-
noneMatch
-
findFirst
OptionalInt findFirst() -
findAny
OptionalInt findAny() -
asLongStream
TLongStream asLongStream() -
asDoubleStream
TDoubleStream asDoubleStream() -
boxed
-
iterator
PrimitiveIterator.OfInt iterator()- Specified by:
iterator
in interfaceTBaseStream<Integer,TIntStream>
-
spliterator
Spliterator.OfInt spliterator()- Specified by:
spliterator
in interfaceTBaseStream<Integer,TIntStream>
-
builder
-
empty
-
of
-
of
-
iterate
-
generate
-
range
-
rangeClosed
-
concat
-