Class TSimpleIntStreamImpl
java.lang.Object
org.teavm.classlib.java.util.stream.intimpl.TSimpleIntStreamImpl
- All Implemented Interfaces:
AutoCloseable
,TBaseStream<Integer,
,TIntStream> TIntStream
- Direct Known Subclasses:
TArrayIntStreamImpl
,TCharSequenceCharsStream
,TCharSequenceCodePointsStream
,TCloseHandlingIntStream
,TDropWhileIntStream
,TEmptyIntStreamImpl
,TFlatMappingIntStreamImpl
,TFlatMappingToIntStreamImpl
,TGenerateIntStream
,TGenericConcatIntStream
,TIterateIntStream
,TLimitingIntStreamImpl
,TMappingToIntStreamImpl
,TMappingToIntStreamImpl
,TMappingToIntStreamImpl
,TRangeIntStream
,TSingleIntStreamImpl
,TSkippingIntStreamImpl
,TSpecializedConcatIntStream
,TStringCharsStream
,TStringCodePointsStream
,TTakeWhileIntStream
,TWrappingIntStreamImpl
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.teavm.classlib.java.util.stream.TIntStream
TIntStream.Builder, TIntStream.IntMapMultiConsumer
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
allMatch
(IntPredicate predicate) boolean
anyMatch
(IntPredicate predicate) average()
boxed()
void
close()
<R> R
collect
(Supplier<R> supplier, ObjIntConsumer<R> accumulator, BiConsumer<R, R> combiner) long
count()
distinct()
dropWhile
(IntPredicate predicate) protected int
filter
(IntPredicate predicate) findAny()
flatMap
(IntFunction<? extends TIntStream> mapper) void
forEach
(IntConsumer action) void
forEachOrdered
(IntConsumer action) boolean
iterator()
limit
(long maxSize) map
(IntUnaryOperator mapper) mapToDouble
(IntToDoubleFunction mapper) mapToLong
(IntToLongFunction mapper) <U> TStream<U>
mapToObj
(IntFunction<? extends U> mapper) max()
min()
abstract boolean
next
(IntPredicate consumer) boolean
noneMatch
(IntPredicate predicate) parallel()
peek
(IntConsumer action) int
reduce
(int identity, IntBinaryOperator accumulator) reduce
(IntBinaryOperator accumulator) skip
(long n) sorted()
int
sum()
takeWhile
(IntPredicate predicate) int[]
toArray()
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.teavm.classlib.java.util.stream.TIntStream
mapMulti
-
Constructor Details
-
TSimpleIntStreamImpl
public TSimpleIntStreamImpl()
-
-
Method Details
-
filter
- Specified by:
filter
in interfaceTIntStream
-
map
- Specified by:
map
in interfaceTIntStream
-
mapToObj
- Specified by:
mapToObj
in interfaceTIntStream
-
mapToLong
- Specified by:
mapToLong
in interfaceTIntStream
-
mapToDouble
- Specified by:
mapToDouble
in interfaceTIntStream
-
flatMap
- Specified by:
flatMap
in interfaceTIntStream
-
distinct
- Specified by:
distinct
in interfaceTIntStream
-
sorted
- Specified by:
sorted
in interfaceTIntStream
-
peek
- Specified by:
peek
in interfaceTIntStream
-
limit
- Specified by:
limit
in interfaceTIntStream
-
takeWhile
- Specified by:
takeWhile
in interfaceTIntStream
-
dropWhile
- Specified by:
dropWhile
in interfaceTIntStream
-
skip
- Specified by:
skip
in interfaceTIntStream
-
forEach
- Specified by:
forEach
in interfaceTIntStream
-
forEachOrdered
- Specified by:
forEachOrdered
in interfaceTIntStream
-
toArray
public int[] toArray()- Specified by:
toArray
in interfaceTIntStream
-
reduce
- Specified by:
reduce
in interfaceTIntStream
-
reduce
- Specified by:
reduce
in interfaceTIntStream
-
collect
- Specified by:
collect
in interfaceTIntStream
-
min
- Specified by:
min
in interfaceTIntStream
-
max
- Specified by:
max
in interfaceTIntStream
-
count
public long count()- Specified by:
count
in interfaceTIntStream
-
sum
public int sum()- Specified by:
sum
in interfaceTIntStream
-
average
- Specified by:
average
in interfaceTIntStream
-
summaryStatistics
- Specified by:
summaryStatistics
in interfaceTIntStream
-
anyMatch
- Specified by:
anyMatch
in interfaceTIntStream
-
allMatch
- Specified by:
allMatch
in interfaceTIntStream
-
noneMatch
- Specified by:
noneMatch
in interfaceTIntStream
-
findFirst
- Specified by:
findFirst
in interfaceTIntStream
-
findAny
- Specified by:
findAny
in interfaceTIntStream
-
asLongStream
- Specified by:
asLongStream
in interfaceTIntStream
-
asDoubleStream
- Specified by:
asDoubleStream
in interfaceTIntStream
-
iterator
- Specified by:
iterator
in interfaceTBaseStream<Integer,
TIntStream> - Specified by:
iterator
in interfaceTIntStream
-
spliterator
- Specified by:
spliterator
in interfaceTBaseStream<Integer,
TIntStream> - Specified by:
spliterator
in interfaceTIntStream
-
boxed
- Specified by:
boxed
in interfaceTIntStream
-
isParallel
public boolean isParallel()- Specified by:
isParallel
in interfaceTBaseStream<Integer,
TIntStream>
-
sequential
- Specified by:
sequential
in interfaceTBaseStream<Integer,
TIntStream>
-
parallel
- Specified by:
parallel
in interfaceTBaseStream<Integer,
TIntStream>
-
unordered
- Specified by:
unordered
in interfaceTBaseStream<Integer,
TIntStream>
-
onClose
- Specified by:
onClose
in interfaceTBaseStream<Integer,
TIntStream>
-
close
- Specified by:
close
in interfaceAutoCloseable
- Throws:
Exception
-
estimateSize
protected int estimateSize() -
next
-