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