@FunctionalInterfaceSE public interface Streamable<T> extends IterableSE<T>, SupplierSE<StreamSE<T>>
IterableSE のストリーミングを容易にするシンプルなインターフェース。| 修飾子と型 | メソッドと説明 |
|---|---|
default Streamable<T> | and(SupplierSE<? extends StreamSE<? extends T>> stream) |
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 を返します。 |
default StreamSE<T> | get() |
default boolean | isEmpty() 現在の 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 を返します。 |
default StreamSE<T> | stream() 基になる IterableSE の非平行 StreamSE を作成します。 |
forEachSE, iteratorSE, spliteratorSEstatic <T> Streamable<T> empty()
Streamable を返します。@SafeVarargsSE static <T> Streamable<T> of(T... t)
Streamable を返します。t - 返す要素。static <T> Streamable<T> of(IterableSE<T> iterable)
IterableSE の Streamable を返します。iterable - null であってはなりません。static <T> Streamable<T> of(SupplierSE<? extends StreamSE<T>> supplier)
default StreamSE<T> stream()
IterableSE の非平行 StreamSE を作成します。default <R> Streamable<R> map(FunctionSE<? super T,? extends R> mapper)
FunctionSE を現在のものに適用する新しい Streamable を返します。mapper - null であってはなりません。Stream.map(Function)SEdefault <R> Streamable<R> flatMap(FunctionSE<? super T,? extends StreamSE<? extends R>> mapper)
FunctionSE を現在のものに適用する新しい Streamable を返します。mapper - null であってはなりません。Stream.flatMap(Function)SEdefault Streamable<T> filter(PredicateSE<? super T> predicate)
PredicateSE を現在のフィルターに適用する新しい Streamable を返します。predicate - null であってはなりません。Stream.filter(Predicate)SEdefault boolean isEmpty()
Streamable が空かどうかを返します。default Streamable<T> and(SupplierSE<? extends StreamSE<? extends T>> stream)
stream - null であってはなりません。Copyright © 2011–2019 Pivotal Software, Inc.. All rights reserved.