@FunctionalInterfaceSE public interface Streamable<T> extends IterableSE<T>, SupplierSE<StreamSE<T>>
Iterable
SE のストリーミングを容易にするシンプルなインターフェース。修飾子と型 | メソッドと説明 |
---|---|
default Streamable<T> | and(IterableSE<? extends T> iterable) |
default Streamable<T> | and(Streamable<? extends T> streamable) |
default Streamable<T> | and(SupplierSE<? extends StreamSE<? extends T>> stream) |
default Streamable<T> | and(T... others) 現在の Streamable と指定された値を連結して新しい Streamable を作成します。 |
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 を作成します。 |
default ListSE<T> | toList() 新しい、変更不可能な List SE を作成します。 |
default SetSE<T> | toSet() 新しい、変更不可能な Set SE を作成します。 |
static <S> CollectorSE<S,?,Streamable<S>> | toStreamable() |
static <S,T extends IterableSE<S>> | toStreamable(CollectorSE<S,?,T> intermediate) Stream SE と指定された中間コレクターから Streamable を簡単に作成するためのコレクター。 |
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 であってはなりません。default Streamable<T> and(T... others)
Streamable
と指定された値を連結して新しい Streamable
を作成します。others
- null であってはなりません。default Streamable<T> and(IterableSE<? extends T> iterable)
iterable
- null であってはなりません。default Streamable<T> and(Streamable<? extends T> streamable)
streamable
- null であってはなりません。static <S> CollectorSE<S,?,Streamable<S>> toStreamable()
toStreamable(Collector)
static <S,T extends IterableSE<S>> CollectorSE<S,?,Streamable<S>> toStreamable(CollectorSE<S,?,T> intermediate)
Stream
SE と指定された中間コレクターから Streamable
を簡単に作成するためのコレクター。Copyright © 2011–2022 Pivotal Software, Inc.. All rights reserved.