Class TSimpleStreamImpl<T>
java.lang.Object
org.teavm.classlib.java.util.stream.impl.TSimpleStreamImpl<T>
- All Implemented Interfaces:
AutoCloseable
,TBaseStream<T,TStream<T>>
,TStream<T>
- Direct Known Subclasses:
TArrayStreamImpl
,TBoxedDoubleStream
,TBoxedIntStream
,TBoxedLongStream
,TCloseHandlingStream
,TEmptyStreamImpl
,TFlatMappingStreamImpl
,TGenerateStream
,TGenericConcatStream
,TIterateStream
,TLimitingStreamImpl
,TMappingToObjStreamImpl
,TMappingToObjStreamImpl
,TMappingToObjStreamImpl
,TSingleStreamImpl
,TSkippingStreamImpl
,TSortedStreamImpl
,TSpecializedConcatStream
,TStreamOverSpliterator
,TStreamOverSpliteratorSupplier
,TWrappingStreamImpl
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.teavm.classlib.java.util.stream.TStream
TStream.Builder<T>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
boolean
void
close()
<R> R
collect(Supplier<R> supplier, BiConsumer<R,? super T> accumulator, BiConsumer<R,R> combiner)
<R, A> R
collect(TCollector<? super T,A,R> collector)
long
count()
distinct()
protected int
findAny()
<R> TStream<R>
flatMapToDouble(Function<? super T,? extends TDoubleStream> mapper)
flatMapToInt(Function<? super T,? extends TIntStream> mapper)
flatMapToLong(Function<? super T,? extends TLongStream> mapper)
void
void
forEachOrdered(Consumer<? super T> action)
boolean
iterator()
limit(long maxSize)
<R> TStream<R>
mapToDouble(ToDoubleFunction<? super T> mapper)
mapToInt(ToIntFunction<? super T> mapper)
mapToLong(ToLongFunction<? super T> mapper)
max(Comparator<? super T> comparator)
min(Comparator<? super T> comparator)
abstract boolean
boolean
parallel()
reduce(BinaryOperator<T> accumulator)
reduce(T identity, BinaryOperator<T> accumulator)
<U> U
reduce(U identity, BiFunction<U,? super T,U> accumulator, BinaryOperator<U> combiner)
skip(long n)
sorted()
sorted(Comparator<? super T> comparator)
Object[]
toArray()
<A> A[]
toArray(IntFunction<A[]> generator)
-
Constructor Details
-
TSimpleStreamImpl
public TSimpleStreamImpl()
-
-
Method Details
-
filter
-
map
-
mapToInt
-
mapToLong
-
mapToDouble
- Specified by:
mapToDouble
in interfaceTStream<T>
-
flatMap
-
flatMapToInt
- Specified by:
flatMapToInt
in interfaceTStream<T>
-
flatMapToLong
- Specified by:
flatMapToLong
in interfaceTStream<T>
-
flatMapToDouble
- Specified by:
flatMapToDouble
in interfaceTStream<T>
-
distinct
-
sorted
-
sorted
-
peek
-
limit
-
skip
-
forEach
-
forEachOrdered
- Specified by:
forEachOrdered
in interfaceTStream<T>
-
toArray
-
toArray
-
reduce
-
reduce
-
reduce
public <U> U reduce(U identity, BiFunction<U,? super T,U> accumulator, BinaryOperator<U> combiner) -
collect
public <R> R collect(Supplier<R> supplier, BiConsumer<R,? super T> accumulator, BiConsumer<R,R> combiner) -
collect
-
min
-
max
-
count
public long count() -
anyMatch
-
allMatch
-
noneMatch
-
findFirst
-
findAny
-
iterator
- Specified by:
iterator
in interfaceTBaseStream<T,TStream<T>>
-
spliterator
- Specified by:
spliterator
in interfaceTBaseStream<T,TStream<T>>
-
isParallel
public boolean isParallel()- Specified by:
isParallel
in interfaceTBaseStream<T,TStream<T>>
-
sequential
- Specified by:
sequential
in interfaceTBaseStream<T,TStream<T>>
-
parallel
- Specified by:
parallel
in interfaceTBaseStream<T,TStream<T>>
-
unordered
- Specified by:
unordered
in interfaceTBaseStream<T,TStream<T>>
-
onClose
- Specified by:
onClose
in interfaceTBaseStream<T,TStream<T>>
-
close
- Specified by:
close
in interfaceAutoCloseable
- Throws:
Exception
-
estimateSize
protected int estimateSize() -
next
-