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 interface
static interface
-
Method Summary
Modifier and TypeMethodDescriptionboolean
allMatch
(LongPredicate predicate) boolean
anyMatch
(LongPredicate predicate) average()
boxed()
static TLongStream.Builder
builder()
<R> R
collect
(Supplier<R> supplier, ObjLongConsumer<R> accumulator, BiConsumer<R, R> combiner) static TLongStream
concat
(TLongStream a, TLongStream b) long
count()
distinct()
dropWhile
(LongPredicate predicate) static TLongStream
empty()
filter
(LongPredicate predicate) findAny()
flatMap
(LongFunction<? extends TLongStream> mapper) void
forEach
(LongConsumer action) void
forEachOrdered
(LongConsumer action) static TLongStream
static TLongStream
iterate
(long seed, LongPredicate pr, LongUnaryOperator f) static TLongStream
iterate
(long seed, LongUnaryOperator f) iterator()
limit
(long maxSize) map
(LongUnaryOperator mapper) default TLongStream
mapToDouble
(LongToDoubleFunction mapper) mapToInt
(LongToIntFunction mapper) <U> TStream<U>
mapToObj
(LongFunction<? extends U> mapper) max()
min()
boolean
noneMatch
(LongPredicate predicate) static TLongStream
of
(long t) static TLongStream
of
(long... values) peek
(LongConsumer action) static TLongStream
range
(long startInclusive, long endExclusive) static TLongStream
rangeClosed
(long startInclusive, long endInclusive) long
reduce
(long identity, LongBinaryOperator accumulator) skip
(long n) sorted()
long
sum()
takeWhile
(LongPredicate predicate) long[]
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
-
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:
iterator
in interfaceTBaseStream<Long,
TLongStream>
-
spliterator
Spliterator.OfLong spliterator()- Specified by:
spliterator
in interfaceTBaseStream<Long,
TLongStream>
-
builder
-
empty
-
of
-
of
-
iterate
-
iterate
-
generate
-
range
-
rangeClosed
-
concat
-