Class ManifoldStreamCollectionsExt
- java.lang.Object
-
- manifold.collections.extensions.java.util.stream.Stream.ManifoldStreamCollectionsExt
-
public class ManifoldStreamCollectionsExt extends Object
-
-
Constructor Summary
Constructors Constructor Description ManifoldStreamCollectionsExt()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static <T,V>
Map<V,List<T>>groupingBy(Stream<T> thiz, Function<? super T,V> valueMapper)static <T> List<T>toList(Stream<T> thiz)static <T,K>
Map<K,T>toMap(Stream<T> thiz, Function<? super T,K> keyMapper)static <T,K,V>
Map<K,V>toMap(Stream<T> thiz, Function<? super T,K> keyMapper, Function<? super T,V> valueMapper)static <T> Set<T>toSet(Stream<T> thiz)
-
-
-
Method Detail
-
toSet
public static <T> Set<T> toSet(Stream<T> thiz)
- Returns:
- A set containing all the elements from the stream, retaining the order of the elements visited.
-
toMap
public static <T,K,V> Map<K,V> toMap(Stream<T> thiz, Function<? super T,K> keyMapper, Function<? super T,V> valueMapper)
-
-