Interface TIntStream
- All Superinterfaces:
AutoCloseable
,TBaseStream<Integer,
TIntStream>
- All Known Implementing Classes:
TArrayIntStreamImpl
,TCharSequenceCharsStream
,TCharSequenceCodePointsStream
,TCloseHandlingIntStream
,TDistinctIntStreamImpl
,TDropWhileIntStream
,TEmptyIntStreamImpl
,TFilteringIntStreamImpl
,TFlatMappingIntStreamImpl
,TFlatMappingToIntStreamImpl
,TGenerateIntStream
,TGenericConcatIntStream
,TIterateIntStream
,TLimitingIntStreamImpl
,TMappingIntStreamImpl
,TMappingToIntStreamImpl
,TMappingToIntStreamImpl
,TMappingToIntStreamImpl
,TPeekingIntStreamImpl
,TRangeIntStream
,TSimpleIntStreamImpl
,TSingleIntStreamImpl
,TSkippingIntStreamImpl
,TSpecializedConcatIntStream
,TStringCharsStream
,TStringCodePointsStream
,TTakeWhileIntStream
,TWrappingIntStreamImpl
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic interface
static interface
-
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()
dropWhile
(IntPredicate predicate) static TIntStream
empty()
filter
(IntPredicate predicate) findAny()
flatMap
(IntFunction<? extends TIntStream> mapper) void
forEach
(IntConsumer action) void
forEachOrdered
(IntConsumer action) static TIntStream
static TIntStream
iterate
(int seed, IntPredicate pr, IntUnaryOperator f) static TIntStream
iterate
(int seed, IntUnaryOperator f) iterator()
limit
(long maxSize) map
(IntUnaryOperator mapper) default TIntStream
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) skip
(long n) sorted()
int
sum()
takeWhile
(IntPredicate predicate) 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
-
mapMulti
-
distinct
TIntStream distinct() -
sorted
TIntStream sorted() -
peek
-
limit
-
takeWhile
-
dropWhile
-
skip
-
forEach
-
forEachOrdered
-
toArray
int[] toArray() -
reduce
-
reduce
-
collect
-
sum
int sum() -
min
OptionalInt min() -
max
OptionalInt max() -
count
long count() -
average
OptionalDouble average() -
summaryStatistics
TIntSummaryStatistics summaryStatistics() -
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
-
iterate
-
generate
-
range
-
rangeClosed
-
concat
-