インターフェース Streamable<T>
- すべてのスーパーインターフェース:
IterableSE<T>,SupplierSE<StreamSE<T>>
- すべての既知のサブインターフェース:
Page<T>、PersistentPropertyPath<P>、PersistentPropertyPaths<T,、P> PropertyPath、Slice<T>、Window<T>
- すべての既知の実装クラス:
DefaultParameters、EntityProjection、EntityProjection.ContainerPropertyProjection、EntityProjection.PropertyProjection、ExpressionDependencies、GeoPage、PageImpl、Parameters、PartTree、PartTree.OrPart、PersistentEntities、QSort、RepositoryComposition.RepositoryFragments、Revisions、RevisionSort、SliceImpl、Sort、Sort.TypedSort
- 関数インターフェース:
- これは関数インターフェースであるため、ラムダ式またはメソッド参照の割り当てターゲットとして使用できます。
@FunctionalInterfaceSE
public interface Streamable<T>
extends IterableSE<T>, SupplierSE<StreamSE<T>>
IterableSE のストリーミングを容易にするシンプルなインターフェース。- 導入:
- 2.0
- 作成者:
- Oliver Gierke, Christoph Strobl
メソッドのサマリー
修飾子と型メソッド説明default Streamable<T>and(IterableSE<? extends T> iterable) default Streamable<T>and(SupplierSE<? extends StreamSE<? extends T>> stream) default Streamable<T>and(Streamable<? extends T> streamable) default Streamable<T>現在のStreamableと指定された値を連結して新しいStreamableを作成します。static <T> Streamable<T>empty()空のStreamableを返します。default Streamable<T>filter(PredicateSE<? super T> predicate) 指定されたフィルターPredicateSE を現在のフィルターに適用する新しいStreamableを返します。default <R> Streamable<R>flatMap(FunctionSE<? super T, ? extends StreamSE<? extends R>> mapper) 指定されたFunctionSE を現在のものに適用する新しいStreamableを返します。get()default booleanisEmpty()現在のStreamableが空かどうかを返します。default <R> Streamable<R>map(FunctionSE<? super T, ? extends R> mapper) 指定されたFunctionSE を現在のものに適用する新しいStreamableを返します。static <T> Streamable<T>of(IterableSE<T> iterable) 指定されたIterableSE のStreamableを返します。static <T> Streamable<T>of(SupplierSE<? extends StreamSE<T>> supplier) static <T> Streamable<T>of(T... t) 指定された要素を持つStreamableを返します。stream()基になるIterableSE の非平行StreamSE を作成します。toList()新しい、変更不可能なListSE を作成します。toSet()新しい、変更不可能なSetSE を作成します。static <S> CollectorSE<S,?, Streamable<S>> static <S,T extends IterableSE<S>>
CollectorSE<S,?, Streamable<S>> toStreamable(CollectorSE<S, ?, T> intermediate) StreamSE と指定された中間コレクターからStreamableを簡単に作成するためのコレクター。インターフェース java.lang.IterableSE から継承されたメソッド
forEachSE, iterator, spliterator
メソッドの詳細
empty
空のStreamableを返します。- 戻り値:
- null になることはありません。
of
指定された要素を持つStreamableを返します。- パラメーター:
t- 返す要素。- 戻り値:
of
指定されたIterableSE のStreamableを返します。- パラメーター:
iterable- null であってはなりません。- 戻り値:
of
stream
基になるIterableSE の非平行StreamSE を作成します。- 戻り値:
- null になることはありません。
map
指定されたFunctionSE を現在のものに適用する新しいStreamableを返します。- パラメーター:
mapper- null であってはなりません。- 戻り値:
- 関連事項:
flatMap
指定されたFunctionSE を現在のものに適用する新しいStreamableを返します。- パラメーター:
mapper- null であってはなりません。- 戻り値:
- 関連事項:
filter
指定されたフィルターPredicateSE を現在のフィルターに適用する新しいStreamableを返します。- パラメーター:
predicate- null であってはなりません。- 戻り値:
- 関連事項:
isEmpty
default boolean isEmpty()現在のStreamableが空かどうかを返します。- 戻り値:
and
- パラメーター:
stream- null であってはなりません。- 戻り値:
- 導入:
- 2.1
and
現在のStreamableと指定された値を連結して新しいStreamableを作成します。- パラメーター:
others- null であってはなりません。- 戻り値:
- null になることはありません。
- 導入:
- 2.2
and
- パラメーター:
iterable- null であってはなりません。- 戻り値:
- null になることはありません。
- 導入:
- 2.2
and
- パラメーター:
streamable- null であってはなりません。- 戻り値:
- null になることはありません。
- 導入:
- 2.2
toList
新しい、変更不可能なListSE を作成します。- 戻り値:
- null になることはありません。
- 導入:
- 2.2
toSet
新しい、変更不可能なSetSE を作成します。- 戻り値:
- null になることはありません。
- 導入:
- 2.2
get
- 次で指定:
- インターフェース
SupplierSE<T>のget
toStreamable
- 戻り値:
- 導入:
- 2.2
- 関連事項:
toStreamable
static <S,T extends IterableSE<S>> CollectorSE<S,?, toStreamableStreamable<S>> (CollectorSE<S, ?, T> intermediate) StreamSE と指定された中間コレクターからStreamableを簡単に作成するためのコレクター。- 戻り値:
- 導入:
- 2.2