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, TBufferedReaderLinesStream, TCloseHandlingStream, TDropWhileStream, TEmptyStreamImpl, TFlatMappingStreamImpl, TGenerateStream, TGenericConcatStream, TIterateStream, TLimitingStreamImpl, TMappingToObjStreamImpl, TMappingToObjStreamImpl, TMappingToObjStreamImpl, TSingleStreamImpl, TSkippingStreamImpl, TSortedStreamImpl, TSpecializedConcatStream, TStreamOverSpliterator, TStreamOverSpliteratorSupplier, TTakeWhileStream, TWrappingStreamImpl
-
Nested Class Summary
Nested classes/interfaces inherited from interface 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 Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface 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
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
-
anyMatch
-
allMatch
-
noneMatch
-
findFirst
-
findAny
-
iterator
-
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
-
unordered
-
onClose
-
close
public void close()- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceTBaseStream<T, TStream<T>>
-
estimateSize
protected int estimateSize() -
next
-