Class TSimpleLongStreamImpl
java.lang.Object
org.teavm.classlib.java.util.stream.longimpl.TSimpleLongStreamImpl
- All Implemented Interfaces:
AutoCloseable
,TBaseStream<Long,
,TLongStream> TLongStream
- Direct Known Subclasses:
TArrayLongStreamImpl
,TCloseHandlingLongStream
,TDropWhileLongStream
,TEmptyLongStreamImpl
,TFlatMappingLongStreamImpl
,TFlatMappingToLongStreamImpl
,TGenerateLongStream
,TGenericConcatLongStream
,TIntAsLongStream
,TIterateLongStream
,TLimitingLongStreamImpl
,TMappingToLongStreamImpl
,TMappingToLongStreamImpl
,TMappingToLongStreamImpl
,TRangeLongStream
,TSingleLongStreamImpl
,TSkippingLongStreamImpl
,TSpecializedConcatLongStream
,TTakeWhileLongStream
,TWrappingLongStreamImpl
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.teavm.classlib.java.util.stream.TLongStream
TLongStream.Builder, TLongStream.LongMapMultiConsumer
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
allMatch
(LongPredicate predicate) boolean
anyMatch
(LongPredicate predicate) average()
boxed()
void
close()
<R> R
collect
(Supplier<R> supplier, ObjLongConsumer<R> accumulator, BiConsumer<R, R> combiner) long
count()
distinct()
dropWhile
(LongPredicate predicate) protected int
filter
(LongPredicate predicate) findAny()
flatMap
(LongFunction<? extends TLongStream> mapper) void
forEach
(LongConsumer action) void
forEachOrdered
(LongConsumer action) boolean
iterator()
limit
(long maxSize) map
(LongUnaryOperator mapper) mapToDouble
(LongToDoubleFunction mapper) mapToInt
(LongToIntFunction mapper) <U> TStream<U>
mapToObj
(LongFunction<? extends U> mapper) max()
min()
abstract boolean
next
(LongPredicate consumer) boolean
noneMatch
(LongPredicate predicate) parallel()
peek
(LongConsumer action) long
reduce
(long identity, LongBinaryOperator accumulator) reduce
(LongBinaryOperator accumulator) skip
(long n) sorted()
long
sum()
takeWhile
(LongPredicate predicate) long[]
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.TLongStream
mapMulti
-
Constructor Details
-
TSimpleLongStreamImpl
public TSimpleLongStreamImpl()
-
-
Method Details
-
filter
- Specified by:
filter
in interfaceTLongStream
-
map
- Specified by:
map
in interfaceTLongStream
-
mapToObj
- Specified by:
mapToObj
in interfaceTLongStream
-
mapToInt
- Specified by:
mapToInt
in interfaceTLongStream
-
mapToDouble
- Specified by:
mapToDouble
in interfaceTLongStream
-
flatMap
- Specified by:
flatMap
in interfaceTLongStream
-
distinct
- Specified by:
distinct
in interfaceTLongStream
-
sorted
- Specified by:
sorted
in interfaceTLongStream
-
peek
- Specified by:
peek
in interfaceTLongStream
-
limit
- Specified by:
limit
in interfaceTLongStream
-
takeWhile
- Specified by:
takeWhile
in interfaceTLongStream
-
dropWhile
- Specified by:
dropWhile
in interfaceTLongStream
-
skip
- Specified by:
skip
in interfaceTLongStream
-
forEach
- Specified by:
forEach
in interfaceTLongStream
-
forEachOrdered
- Specified by:
forEachOrdered
in interfaceTLongStream
-
toArray
public long[] toArray()- Specified by:
toArray
in interfaceTLongStream
-
reduce
- Specified by:
reduce
in interfaceTLongStream
-
reduce
- Specified by:
reduce
in interfaceTLongStream
-
collect
public <R> R collect(Supplier<R> supplier, ObjLongConsumer<R> accumulator, BiConsumer<R, R> combiner) - Specified by:
collect
in interfaceTLongStream
-
min
- Specified by:
min
in interfaceTLongStream
-
max
- Specified by:
max
in interfaceTLongStream
-
count
public long count()- Specified by:
count
in interfaceTLongStream
-
sum
public long sum()- Specified by:
sum
in interfaceTLongStream
-
average
- Specified by:
average
in interfaceTLongStream
-
summaryStatistics
- Specified by:
summaryStatistics
in interfaceTLongStream
-
anyMatch
- Specified by:
anyMatch
in interfaceTLongStream
-
allMatch
- Specified by:
allMatch
in interfaceTLongStream
-
noneMatch
- Specified by:
noneMatch
in interfaceTLongStream
-
findFirst
- Specified by:
findFirst
in interfaceTLongStream
-
findAny
- Specified by:
findAny
in interfaceTLongStream
-
asDoubleStream
- Specified by:
asDoubleStream
in interfaceTLongStream
-
iterator
- Specified by:
iterator
in interfaceTBaseStream<Long,
TLongStream> - Specified by:
iterator
in interfaceTLongStream
-
spliterator
- Specified by:
spliterator
in interfaceTBaseStream<Long,
TLongStream> - Specified by:
spliterator
in interfaceTLongStream
-
boxed
- Specified by:
boxed
in interfaceTLongStream
-
isParallel
public boolean isParallel()- Specified by:
isParallel
in interfaceTBaseStream<Long,
TLongStream>
-
sequential
- Specified by:
sequential
in interfaceTBaseStream<Long,
TLongStream>
-
parallel
- Specified by:
parallel
in interfaceTBaseStream<Long,
TLongStream>
-
unordered
- Specified by:
unordered
in interfaceTBaseStream<Long,
TLongStream>
-
onClose
- Specified by:
onClose
in interfaceTBaseStream<Long,
TLongStream>
-
close
- Specified by:
close
in interfaceAutoCloseable
- Throws:
Exception
-
estimateSize
protected int estimateSize() -
next
-