| 程序包 | 说明 |
|---|---|
| cn.jdevelops.spring.springutil |
| 限定符和类型 | 方法和说明 |
|---|---|
default Streamable<T> |
Streamable.and(Iterable<? extends T> iterable)
Creates a new Streamable from the current one and the given Iterable concatenated.
|
default Streamable<T> |
Streamable.and(Streamable<? extends T> streamable)
Convenience method to allow adding a Streamable directly as otherwise the invocation is ambiguous between
|
default Streamable<T> |
Streamable.and(Supplier<? extends Stream<? extends T>> stream)
Creates a new Streamable from the current one and the given Stream concatenated.
|
default Streamable<T> |
Streamable.and(T... others)
Creates a new Streamable from the current one and the given values concatenated.
|
static <T> Streamable<T> |
Streamable.empty()
Returns an empty Streamable.
|
default Streamable<T> |
Streamable.filter(Predicate<? super T> predicate)
Returns a new Streamable that will apply the given filter Predicate to the current one.
|
default <R> Streamable<R> |
Streamable.flatMap(Function<? super T,? extends Stream<? extends R>> mapper)
Returns a new Streamable that will apply the given Function to the current one.
|
default <R> Streamable<R> |
Streamable.map(Function<? super T,? extends R> mapper)
Returns a new Streamable that will apply the given Function to the current one.
|
static <T> Streamable<T> |
Streamable.of(Iterable<T> iterable)
Returns a Streamable for the given Iterable.
|
static <T> Streamable<T> |
Streamable.of(Supplier<? extends Stream<T>> supplier) |
static <T> Streamable<T> |
Streamable.of(T... t)
Returns a Streamable with the given elements.
|
| 限定符和类型 | 方法和说明 |
|---|---|
static <S> Collector<S,?,Streamable<S>> |
Streamable.toStreamable()
A collector to easily produce a Streamable from a Stream using Collectors#toList as
intermediate collector.
|
static <S,T extends Iterable<S>> |
Streamable.toStreamable(Collector<S,?,T> intermediate)
A collector to easily produce a Streamable from a Stream and the given intermediate collector.
|
| 限定符和类型 | 方法和说明 |
|---|---|
default Streamable<T> |
Streamable.and(Streamable<? extends T> streamable)
Convenience method to allow adding a Streamable directly as otherwise the invocation is ambiguous between
|
Copyright © 2023 tan. All rights reserved.