public interface StreamUtilsStreamSE ユーティリティのメソッドとクラス。| 修飾子と型 | メソッドと説明 |
|---|---|
static <T> StreamSE<T> | createStreamFromIterator(CloseableIterator<T> iterator) |
static <T> StreamSE<T> | createStreamFromIterator(IteratorSE<T> iterator) 指定された IteratorSE に連動する StreamSE を返します |
static <T> StreamSE<T> | fromNullable(T source) |
static <T,K,V> CollectorSE<T,MultiValueMap<K,V>,MultiValueMap<K,V>> | toMultiMap(FunctionSE<T,K> keyFunction, FunctionSE<T,V> valueFunction)MultiValueMap を作成する CollectorSE を返します。 |
static <T> CollectorSE<T,?,ListSE<T>> | toUnmodifiableList()CollectorSE を返し、変更不可能な ListSE を作成します。 |
static <T> CollectorSE<T,?,SetSE<T>> | toUnmodifiableSet()CollectorSE を返し、変更不可能な SetSE を作成します。 |
static <L,R,T> StreamSE<T> | zip(StreamSE<L> left, StreamSE<R> right, BiFunctionSE<L,R,T> combiner) 指定された BiFunctionSE を使用して、指定された StreamSE を圧縮します。 |
static <T> StreamSE<T> createStreamFromIterator(IteratorSE<T> iterator)
IteratorSE に連動する StreamSE を返します iterator - null であってはなりません。static <T> StreamSE<T> createStreamFromIterator(CloseableIterator<T> iterator)
iterator - null であってはなりません。static <T> CollectorSE<T,?,ListSE<T>> toUnmodifiableList()
CollectorSE を返し、変更不可能な ListSE を作成します。static <T> CollectorSE<T,?,SetSE<T>> toUnmodifiableSet()
CollectorSE を返し、変更不可能な SetSE を作成します。static <T,K,V> CollectorSE<T,MultiValueMap<K,V>,MultiValueMap<K,V>> toMultiMap(FunctionSE<T,K> keyFunction, FunctionSE<T,V> valueFunction)
MultiValueMap を作成する CollectorSE を返します。keyFunction - StreamSE の要素からキーを作成する FunctionSEvalueFunction - StreamSE の要素から値を作成する FunctionSEstatic <L,R,T> StreamSE<T> zip(StreamSE<L> left, StreamSE<R> right, BiFunctionSE<L,R,T> combiner)
BiFunctionSE を使用して、指定された StreamSE を圧縮します。結果の StreamSE は、2 つの短い方の長さを持ち、2 つの短い方の StreamSE が使い果たされたときの圧縮を省略します。left - null であってはなりません。right - null であってはなりません。combiner - null であってはなりません。Copyright © 2011–2019 Pivotal Software, Inc.. All rights reserved.