Interface TLongStream
- All Superinterfaces:
AutoCloseable,TBaseStream<Long,TLongStream>
- All Known Implementing Classes:
TArrayLongStreamImpl,TCloseHandlingLongStream,TDistinctLongStreamImpl,TDropWhileLongStream,TEmptyLongStreamImpl,TFilteringLongStreamImpl,TFlatMappingLongStreamImpl,TFlatMappingToLongStreamImpl,TGenerateLongStream,TGenericConcatLongStream,TIntAsLongStream,TIterateLongStream,TLimitingLongStreamImpl,TMappingLongStreamImpl,TMappingToLongStreamImpl,TMappingToLongStreamImpl,TMappingToLongStreamImpl,TPeekingLongStreamImpl,TRangeLongStream,TSimpleLongStreamImpl,TSingleLongStreamImpl,TSkippingLongStreamImpl,TSpecializedConcatLongStream,TTakeWhileLongStream,TWrappingLongStreamImpl
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic interfacestatic interface -
Method Summary
Modifier and TypeMethodDescriptionbooleanallMatch(LongPredicate predicate) booleananyMatch(LongPredicate predicate) average()boxed()static TLongStream.Builderbuilder()<R> Rcollect(Supplier<R> supplier, ObjLongConsumer<R> accumulator, BiConsumer<R, R> combiner) static TLongStreamconcat(TLongStream a, TLongStream b) longcount()distinct()dropWhile(LongPredicate predicate) static TLongStreamempty()filter(LongPredicate predicate) findAny()flatMap(LongFunction<? extends TLongStream> mapper) voidforEach(LongConsumer action) voidforEachOrdered(LongConsumer action) static TLongStreamstatic TLongStreamiterate(long seed, LongPredicate pr, LongUnaryOperator f) static TLongStreamiterate(long seed, LongUnaryOperator f) iterator()limit(long maxSize) map(LongUnaryOperator mapper) default TLongStreammapToDouble(LongToDoubleFunction mapper) mapToInt(LongToIntFunction mapper) <U> TStream<U> mapToObj(LongFunction<? extends U> mapper) max()min()booleannoneMatch(LongPredicate predicate) static TLongStreamof(long t) static TLongStreamof(long... values) peek(LongConsumer action) static TLongStreamrange(long startInclusive, long endExclusive) static TLongStreamrangeClosed(long startInclusive, long endInclusive) longreduce(long identity, LongBinaryOperator accumulator) skip(long n) sorted()longsum()takeWhile(LongPredicate predicate) long[]toArray()Methods inherited from interface java.lang.AutoCloseable
closeMethods inherited from interface org.teavm.classlib.java.util.stream.TBaseStream
isParallel, onClose, parallel, sequential, unordered
-
Method Details
-
filter
-
map
-
mapToObj
-
mapToInt
-
mapToDouble
-
flatMap
-
mapMulti
-
distinct
TLongStream distinct() -
sorted
TLongStream sorted() -
peek
-
limit
-
takeWhile
-
dropWhile
-
skip
-
forEach
-
forEachOrdered
-
toArray
long[] toArray() -
reduce
-
reduce
-
collect
-
sum
long sum() -
min
OptionalLong min() -
max
OptionalLong max() -
count
long count() -
average
OptionalDouble average() -
summaryStatistics
TLongSummaryStatistics summaryStatistics() -
anyMatch
-
allMatch
-
noneMatch
-
findFirst
OptionalLong findFirst() -
findAny
OptionalLong findAny() -
asDoubleStream
TDoubleStream asDoubleStream() -
boxed
-
iterator
PrimitiveIterator.OfLong iterator()- Specified by:
iteratorin interfaceTBaseStream<Long,TLongStream>
-
spliterator
Spliterator.OfLong spliterator()- Specified by:
spliteratorin interfaceTBaseStream<Long,TLongStream>
-
builder
-
empty
-
of
-
of
-
iterate
-
iterate
-
generate
-
range
-
rangeClosed
-
concat
-