All Methods Static Methods Instance Methods Abstract Methods Default Methods
Modifier and Type |
Method and Description |
boolean |
allMatch(Predicate<? super T> predicate) |
boolean |
anyMatch(Predicate<? super T> predicate) |
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> |
concat(TStream<? extends T> a,
TStream<? extends T> b) |
long |
count() |
TStream<T> |
distinct() |
static <T> TStream<T> |
empty() |
TStream<T> |
filter(Predicate<? super T> predicate) |
Optional<T> |
findAny() |
Optional<T> |
findFirst() |
<R> TStream<R> |
flatMap(Function<? super T,? extends TStream<? extends R>> mapper) |
TDoubleStream |
flatMapToDouble(Function<? super T,? extends TDoubleStream> mapper) |
TIntStream |
flatMapToInt(Function<? super T,? extends TIntStream> mapper) |
TLongStream |
flatMapToLong(Function<? super T,? extends TLongStream> mapper) |
void |
forEach(Consumer<? super T> action) |
void |
forEachOrdered(Consumer<? super T> action) |
static <T> TStream<T> |
generate(Supplier<T> s) |
static <T> TStream<T> |
iterate(T seed,
UnaryOperator<T> f) |
TStream<T> |
limit(long maxSize) |
<R> TStream<R> |
map(Function<? super T,? extends R> mapper) |
TDoubleStream |
mapToDouble(ToDoubleFunction<? super T> mapper) |
TIntStream |
mapToInt(ToIntFunction<? super T> mapper) |
TLongStream |
mapToLong(ToLongFunction<? super T> mapper) |
Optional<T> |
max(Comparator<? super T> comparator) |
Optional<T> |
min(Comparator<? super T> comparator) |
boolean |
noneMatch(Predicate<? super T> predicate) |
static <T> TStream<T> |
of(T... values) |
static <T> TStream<T> |
of(T t) |
TStream<T> |
peek(Consumer<? super T> action) |
Optional<T> |
reduce(BinaryOperator<T> accumulator) |
T |
reduce(T identity,
BinaryOperator<T> accumulator) |
<U> U |
reduce(U identity,
BiFunction<U,? super T,U> accumulator,
BinaryOperator<U> combiner) |
TStream<T> |
skip(long n) |
TStream<T> |
sorted() |
TStream<T> |
sorted(Comparator<? super T> comparator) |
Object[] |
toArray() |
<A> A[] |
toArray(IntFunction<A[]> generator) |