Interface TDoubleStream
- All Superinterfaces:
AutoCloseable
,TBaseStream<Double,TDoubleStream>
- All Known Implementing Classes:
TArrayDoubleStreamImpl
,TCloseHandlingDoubleStream
,TDistinctDoubleStreamImpl
,TEmptyDoubleStreamImpl
,TFilteringDoubleStreamImpl
,TFlatMappingDoubleStreamImpl
,TFlatMappingToDoubleStreamImpl
,TGenerateDoubleStream
,TGenericConcatDoubleStream
,TIntAsDoubleStream
,TIterateDoubleStream
,TLimitingDoubleStreamImpl
,TLongAsDoubleStream
,TMappingDoubleStreamImpl
,TMappingToDoubleStreamImpl
,TMappingToDoubleStreamImpl
,TMappingToDoubleStreamImpl
,TPeekingDoubleStreamImpl
,TSimpleDoubleStreamImpl
,TSingleDoubleStreamImpl
,TSkippingDoubleStreamImpl
,TSpecializedConcatDoubleStream
,TWrappingDoubleStreamImpl
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionboolean
allMatch(DoublePredicate predicate)
boolean
anyMatch(DoublePredicate predicate)
average()
boxed()
static TDoubleStream.Builder
builder()
<R> R
collect(Supplier<R> supplier, ObjDoubleConsumer<R> accumulator, BiConsumer<R,R> combiner)
static TDoubleStream
concat(TDoubleStream a, TDoubleStream b)
long
count()
distinct()
static TDoubleStream
empty()
filter(DoublePredicate predicate)
findAny()
flatMap(DoubleFunction<? extends TDoubleStream> mapper)
void
forEach(DoubleConsumer action)
void
forEachOrdered(DoubleConsumer action)
static TDoubleStream
static TDoubleStream
iterate(double seed, DoubleUnaryOperator f)
iterator()
limit(long maxSize)
map(DoubleUnaryOperator mapper)
mapToInt(DoubleToIntFunction mapper)
mapToLong(DoubleToLongFunction mapper)
<U> TStream<U>
mapToObj(DoubleFunction<? extends U> mapper)
max()
min()
boolean
noneMatch(DoublePredicate predicate)
static TDoubleStream
of(double t)
static TDoubleStream
of(double... values)
peek(DoubleConsumer action)
double
reduce(double identity, DoubleBinaryOperator accumulator)
skip(long n)
sorted()
double
sum()
double[]
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
-
mapToLong
-
flatMap
-
distinct
TDoubleStream distinct() -
sorted
TDoubleStream sorted() -
peek
-
limit
-
skip
-
forEach
-
forEachOrdered
-
toArray
double[] toArray() -
reduce
-
reduce
-
collect
-
sum
double sum() -
min
OptionalDouble min() -
max
OptionalDouble max() -
count
long count() -
average
OptionalDouble average() -
anyMatch
-
allMatch
-
noneMatch
-
findFirst
OptionalDouble findFirst() -
findAny
OptionalDouble findAny() -
boxed
-
iterator
PrimitiveIterator.OfDouble iterator()- Specified by:
iterator
in interfaceTBaseStream<Double,TDoubleStream>
-
spliterator
Spliterator.OfDouble spliterator()- Specified by:
spliterator
in interfaceTBaseStream<Double,TDoubleStream>
-
builder
-
empty
-
of
-
of
-
iterate
-
generate
-
concat
-