Interface TStream<T>
- All Superinterfaces:
AutoCloseable
,TBaseStream<T,TStream<T>>
- All Known Implementing Classes:
TArrayStreamImpl
,TBoxedDoubleStream
,TBoxedIntStream
,TBoxedLongStream
,TCloseHandlingStream
,TDistinctStreamImpl
,TEmptyStreamImpl
,TFilteringStreamImpl
,TFlatMappingStreamImpl
,TGenerateStream
,TGenericConcatStream
,TIterateStream
,TLimitingStreamImpl
,TMappingStreamImpl
,TMappingToObjStreamImpl
,TMappingToObjStreamImpl
,TMappingToObjStreamImpl
,TPeekingStreamImpl
,TSimpleStreamImpl
,TSingleStreamImpl
,TSkippingStreamImpl
,TSortedStreamImpl
,TSpecializedConcatStream
,TStreamOverSpliterator
,TStreamOverSpliteratorSupplier
,TWrappingStreamImpl
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionboolean
boolean
static <T> TStream.Builder<T>
builder()
<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)
static <T> TStream<T>
long
count()
distinct()
static <T> TStream<T>
empty()
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)
static <T> TStream<T>
static <T> TStream<T>
iterate(T seed, UnaryOperator<T> f)
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)
boolean
static <T> TStream<T>
of(T t)
static <T> TStream<T>
of(T... values)
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)
Methods inherited from interface java.lang.AutoCloseable
close
Methods inherited from interface org.teavm.classlib.java.util.stream.TBaseStream
isParallel, iterator, onClose, parallel, sequential, spliterator, unordered
-
Method Details
-
filter
-
map
-
mapToInt
-
mapToLong
-
mapToDouble
-
flatMap
-
flatMapToInt
-
flatMapToLong
-
flatMapToDouble
-
distinct
-
sorted
-
sorted
-
peek
-
limit
-
skip
-
forEach
-
forEachOrdered
-
toArray
Object[] toArray() -
toArray
-
reduce
-
reduce
-
reduce
-
collect
<R> R collect(Supplier<R> supplier, BiConsumer<R,? super T> accumulator, BiConsumer<R,R> combiner) -
collect
-
min
-
max
-
count
long count() -
anyMatch
-
allMatch
-
noneMatch
-
findFirst
-
findAny
-
builder
-
empty
-
of
-
of
-
iterate
-
generate
-
concat
-