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 TypeMethodDescriptionbooleanbooleanvoidclose()<R> Rcollect(Supplier<R> supplier, BiConsumer<R, ? super T> accumulator, BiConsumer<R, R> combiner) <R,A> R collect(TCollector<? super T, A, R> collector) longcount()distinct()protected intfindAny()<R> TStream<R> flatMapToDouble(Function<? super T, ? extends TDoubleStream> mapper) flatMapToInt(Function<? super T, ? extends TIntStream> mapper) flatMapToLong(Function<? super T, ? extends TLongStream> mapper) voidvoidforEachOrdered(Consumer<? super T> action) booleaniterator()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 booleanbooleanparallel()reduce(BinaryOperator<T> accumulator) reduce(T identity, BinaryOperator<T> accumulator) <U> Ureduce(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) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.teavm.classlib.java.util.stream.TStream
mapMulti, mapMultiToDouble, mapMultiToInt, mapMultiToLong, toList
-
Constructor Details
-
TSimpleStreamImpl
public TSimpleStreamImpl()
-
-
Method Details
-
filter
-
map
-
mapToInt
-
mapToLong
-
mapToDouble
- Specified by:
mapToDoublein interfaceTStream<T>
-
flatMap
-
flatMapToInt
- Specified by:
flatMapToIntin interfaceTStream<T>
-
flatMapToLong
- Specified by:
flatMapToLongin interfaceTStream<T>
-
flatMapToDouble
- Specified by:
flatMapToDoublein interfaceTStream<T>
-
distinct
-
sorted
-
sorted
-
peek
-
limit
-
takeWhile
-
dropWhile
-
skip
-
forEach
-
forEachOrdered
- Specified by:
forEachOrderedin interfaceTStream<T>
-
toArray
-
toArray
-
reduce
-
reduce
-
reduce
-
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:
iteratorin interfaceTBaseStream<T,TStream<T>>
-
spliterator
- Specified by:
spliteratorin interfaceTBaseStream<T,TStream<T>>
-
isParallel
public boolean isParallel()- Specified by:
isParallelin interfaceTBaseStream<T,TStream<T>>
-
sequential
- Specified by:
sequentialin interfaceTBaseStream<T,TStream<T>>
-
parallel
- Specified by:
parallelin interfaceTBaseStream<T,TStream<T>>
-
unordered
- Specified by:
unorderedin interfaceTBaseStream<T,TStream<T>>
-
onClose
- Specified by:
onClosein interfaceTBaseStream<T,TStream<T>>
-
close
- Specified by:
closein interfaceAutoCloseable- Throws:
Exception
-
estimateSize
protected int estimateSize() -
next
-