Package com.complexible.common.base
Class ImmutableCollectors
- java.lang.Object
-
- com.complexible.common.base.ImmutableCollectors
-
public final class ImmutableCollectors extends java.lang.Object
- Since:
- 4.0
- Version:
- 4.0
- Author:
- Michael Grove, Fernando Hernandez
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static <T> java.util.stream.Collector<T,com.google.common.collect.ImmutableList.Builder<T>,com.google.common.collect.ImmutableList<T>>
toList()
static <T,K,V>
java.util.stream.Collector<T,com.google.common.collect.ImmutableMap.Builder<K,V>,com.google.common.collect.ImmutableMap<K,V>>toMap(java.util.function.Function<? super T,? extends K> keyMapper, java.util.function.Function<? super T,? extends V> valueMapper)
static <T,K,V>
java.util.stream.Collector<T,com.google.common.collect.HashMultimap<K,V>,com.google.common.collect.Multimap<K,V>>toMultimap(java.util.function.Function<? super T,? extends K> keyMapper, java.util.function.Function<? super T,? extends V> valueMapper)
static <T> java.util.stream.Collector<T,com.google.common.collect.ImmutableSet.Builder<T>,com.google.common.collect.ImmutableSet<T>>
toSet()
-
-
-
Method Detail
-
toSet
public static <T> java.util.stream.Collector<T,com.google.common.collect.ImmutableSet.Builder<T>,com.google.common.collect.ImmutableSet<T>> toSet()
-
toList
public static <T> java.util.stream.Collector<T,com.google.common.collect.ImmutableList.Builder<T>,com.google.common.collect.ImmutableList<T>> toList()
-
toMap
public static <T,K,V> java.util.stream.Collector<T,com.google.common.collect.ImmutableMap.Builder<K,V>,com.google.common.collect.ImmutableMap<K,V>> toMap(java.util.function.Function<? super T,? extends K> keyMapper, java.util.function.Function<? super T,? extends V> valueMapper)
-
toMultimap
public static <T,K,V> java.util.stream.Collector<T,com.google.common.collect.HashMultimap<K,V>,com.google.common.collect.Multimap<K,V>> toMultimap(java.util.function.Function<? super T,? extends K> keyMapper, java.util.function.Function<? super T,? extends V> valueMapper)
-
-