Class TSimpleDoubleStreamImpl
java.lang.Object
org.teavm.classlib.java.util.stream.doubleimpl.TSimpleDoubleStreamImpl
- All Implemented Interfaces:
AutoCloseable
,TBaseStream<Double,TDoubleStream>
,TDoubleStream
- Direct Known Subclasses:
TArrayDoubleStreamImpl
,TCloseHandlingDoubleStream
,TEmptyDoubleStreamImpl
,TFlatMappingDoubleStreamImpl
,TFlatMappingToDoubleStreamImpl
,TGenerateDoubleStream
,TGenericConcatDoubleStream
,TIntAsDoubleStream
,TIterateDoubleStream
,TLimitingDoubleStreamImpl
,TLongAsDoubleStream
,TMappingToDoubleStreamImpl
,TMappingToDoubleStreamImpl
,TMappingToDoubleStreamImpl
,TSingleDoubleStreamImpl
,TSkippingDoubleStreamImpl
,TSpecializedConcatDoubleStream
,TWrappingDoubleStreamImpl
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.teavm.classlib.java.util.stream.TDoubleStream
TDoubleStream.Builder
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
allMatch(DoublePredicate predicate)
boolean
anyMatch(DoublePredicate predicate)
average()
boxed()
void
close()
<R> R
collect(Supplier<R> supplier, ObjDoubleConsumer<R> accumulator, BiConsumer<R,R> combiner)
long
count()
distinct()
protected int
filter(DoublePredicate predicate)
findAny()
flatMap(DoubleFunction<? extends TDoubleStream> mapper)
void
forEach(DoubleConsumer action)
void
forEachOrdered(DoubleConsumer action)
boolean
iterator()
limit(long maxSize)
map(DoubleUnaryOperator mapper)
mapToInt(DoubleToIntFunction mapper)
mapToLong(DoubleToLongFunction mapper)
<U> TStream<U>
mapToObj(DoubleFunction<? extends U> mapper)
max()
min()
abstract boolean
next(DoublePredicate consumer)
boolean
noneMatch(DoublePredicate predicate)
parallel()
peek(DoubleConsumer action)
double
reduce(double identity, DoubleBinaryOperator accumulator)
reduce(DoubleBinaryOperator accumulator)
skip(long n)
sorted()
double
sum()
double[]
toArray()
-
Constructor Details
-
TSimpleDoubleStreamImpl
public TSimpleDoubleStreamImpl()
-
-
Method Details
-
filter
- Specified by:
filter
in interfaceTDoubleStream
-
map
- Specified by:
map
in interfaceTDoubleStream
-
mapToObj
- Specified by:
mapToObj
in interfaceTDoubleStream
-
mapToInt
- Specified by:
mapToInt
in interfaceTDoubleStream
-
mapToLong
- Specified by:
mapToLong
in interfaceTDoubleStream
-
flatMap
- Specified by:
flatMap
in interfaceTDoubleStream
-
distinct
- Specified by:
distinct
in interfaceTDoubleStream
-
sorted
- Specified by:
sorted
in interfaceTDoubleStream
-
peek
- Specified by:
peek
in interfaceTDoubleStream
-
limit
- Specified by:
limit
in interfaceTDoubleStream
-
skip
- Specified by:
skip
in interfaceTDoubleStream
-
forEach
- Specified by:
forEach
in interfaceTDoubleStream
-
forEachOrdered
- Specified by:
forEachOrdered
in interfaceTDoubleStream
-
toArray
public double[] toArray()- Specified by:
toArray
in interfaceTDoubleStream
-
reduce
- Specified by:
reduce
in interfaceTDoubleStream
-
reduce
- Specified by:
reduce
in interfaceTDoubleStream
-
collect
public <R> R collect(Supplier<R> supplier, ObjDoubleConsumer<R> accumulator, BiConsumer<R,R> combiner)- Specified by:
collect
in interfaceTDoubleStream
-
min
- Specified by:
min
in interfaceTDoubleStream
-
max
- Specified by:
max
in interfaceTDoubleStream
-
count
public long count()- Specified by:
count
in interfaceTDoubleStream
-
sum
public double sum()- Specified by:
sum
in interfaceTDoubleStream
-
average
- Specified by:
average
in interfaceTDoubleStream
-
anyMatch
- Specified by:
anyMatch
in interfaceTDoubleStream
-
allMatch
- Specified by:
allMatch
in interfaceTDoubleStream
-
noneMatch
- Specified by:
noneMatch
in interfaceTDoubleStream
-
findFirst
- Specified by:
findFirst
in interfaceTDoubleStream
-
findAny
- Specified by:
findAny
in interfaceTDoubleStream
-
iterator
- Specified by:
iterator
in interfaceTBaseStream<Double,TDoubleStream>
- Specified by:
iterator
in interfaceTDoubleStream
-
spliterator
- Specified by:
spliterator
in interfaceTBaseStream<Double,TDoubleStream>
- Specified by:
spliterator
in interfaceTDoubleStream
-
boxed
- Specified by:
boxed
in interfaceTDoubleStream
-
isParallel
public boolean isParallel()- Specified by:
isParallel
in interfaceTBaseStream<Double,TDoubleStream>
-
sequential
- Specified by:
sequential
in interfaceTBaseStream<Double,TDoubleStream>
-
parallel
- Specified by:
parallel
in interfaceTBaseStream<Double,TDoubleStream>
-
unordered
- Specified by:
unordered
in interfaceTBaseStream<Double,TDoubleStream>
-
onClose
- Specified by:
onClose
in interfaceTBaseStream<Double,TDoubleStream>
-
close
- Specified by:
close
in interfaceAutoCloseable
- Throws:
Exception
-
estimateSize
protected int estimateSize() -
next
-