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,TEmptyLongStreamImpl,TFlatMappingLongStreamImpl,TFlatMappingToLongStreamImpl,TGenerateLongStream,TGenericConcatLongStream,TIntAsLongStream,TIterateLongStream,TLimitingLongStreamImpl,TMappingToLongStreamImpl,TMappingToLongStreamImpl,TMappingToLongStreamImpl,TRangeLongStream,TSingleLongStreamImpl,TSkippingLongStreamImpl,TSpecializedConcatLongStream,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 TypeMethodDescriptionbooleanallMatch(LongPredicate predicate) booleananyMatch(LongPredicate predicate) average()boxed()voidclose()<R> Rcollect(Supplier<R> supplier, ObjLongConsumer<R> accumulator, BiConsumer<R, R> combiner) longcount()distinct()dropWhile(LongPredicate predicate) protected intfilter(LongPredicate predicate) findAny()flatMap(LongFunction<? extends TLongStream> mapper) voidforEach(LongConsumer action) voidforEachOrdered(LongConsumer action) booleaniterator()limit(long maxSize) map(LongUnaryOperator mapper) mapToDouble(LongToDoubleFunction mapper) mapToInt(LongToIntFunction mapper) <U> TStream<U> mapToObj(LongFunction<? extends U> mapper) max()min()abstract booleannext(LongPredicate consumer) booleannoneMatch(LongPredicate predicate) parallel()peek(LongConsumer action) longreduce(long identity, LongBinaryOperator accumulator) reduce(LongBinaryOperator accumulator) skip(long n) sorted()longsum()takeWhile(LongPredicate predicate) long[]toArray()Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.teavm.classlib.java.util.stream.TLongStream
mapMulti
-
Constructor Details
-
TSimpleLongStreamImpl
public TSimpleLongStreamImpl()
-
-
Method Details
-
filter
- Specified by:
filterin interfaceTLongStream
-
map
- Specified by:
mapin interfaceTLongStream
-
mapToObj
- Specified by:
mapToObjin interfaceTLongStream
-
mapToInt
- Specified by:
mapToIntin interfaceTLongStream
-
mapToDouble
- Specified by:
mapToDoublein interfaceTLongStream
-
flatMap
- Specified by:
flatMapin interfaceTLongStream
-
distinct
- Specified by:
distinctin interfaceTLongStream
-
sorted
- Specified by:
sortedin interfaceTLongStream
-
peek
- Specified by:
peekin interfaceTLongStream
-
limit
- Specified by:
limitin interfaceTLongStream
-
takeWhile
- Specified by:
takeWhilein interfaceTLongStream
-
dropWhile
- Specified by:
dropWhilein interfaceTLongStream
-
skip
- Specified by:
skipin interfaceTLongStream
-
forEach
- Specified by:
forEachin interfaceTLongStream
-
forEachOrdered
- Specified by:
forEachOrderedin interfaceTLongStream
-
toArray
public long[] toArray()- Specified by:
toArrayin interfaceTLongStream
-
reduce
- Specified by:
reducein interfaceTLongStream
-
reduce
- Specified by:
reducein interfaceTLongStream
-
collect
public <R> R collect(Supplier<R> supplier, ObjLongConsumer<R> accumulator, BiConsumer<R, R> combiner) - Specified by:
collectin interfaceTLongStream
-
min
- Specified by:
minin interfaceTLongStream
-
max
- Specified by:
maxin interfaceTLongStream
-
count
public long count()- Specified by:
countin interfaceTLongStream
-
sum
public long sum()- Specified by:
sumin interfaceTLongStream
-
average
- Specified by:
averagein interfaceTLongStream
-
summaryStatistics
- Specified by:
summaryStatisticsin interfaceTLongStream
-
anyMatch
- Specified by:
anyMatchin interfaceTLongStream
-
allMatch
- Specified by:
allMatchin interfaceTLongStream
-
noneMatch
- Specified by:
noneMatchin interfaceTLongStream
-
findFirst
- Specified by:
findFirstin interfaceTLongStream
-
findAny
- Specified by:
findAnyin interfaceTLongStream
-
asDoubleStream
- Specified by:
asDoubleStreamin interfaceTLongStream
-
iterator
- Specified by:
iteratorin interfaceTBaseStream<Long,TLongStream> - Specified by:
iteratorin interfaceTLongStream
-
spliterator
- Specified by:
spliteratorin interfaceTBaseStream<Long,TLongStream> - Specified by:
spliteratorin interfaceTLongStream
-
boxed
- Specified by:
boxedin interfaceTLongStream
-
isParallel
public boolean isParallel()- Specified by:
isParallelin interfaceTBaseStream<Long,TLongStream>
-
sequential
- Specified by:
sequentialin interfaceTBaseStream<Long,TLongStream>
-
parallel
- Specified by:
parallelin interfaceTBaseStream<Long,TLongStream>
-
unordered
- Specified by:
unorderedin interfaceTBaseStream<Long,TLongStream>
-
onClose
- Specified by:
onClosein interfaceTBaseStream<Long,TLongStream>
-
close
- Specified by:
closein interfaceAutoCloseable- Throws:
Exception
-
estimateSize
protected int estimateSize() -
next
-