Package com.github.mizool.core
Class GuavaCollectors
java.lang.Object
com.github.mizool.core.GuavaCollectors
-
Method Summary
Modifier and TypeMethodDescriptionstatic <T> Collector<T,
?, com.google.common.collect.ImmutableList<T>> Deprecated, for removal: This API element is subject to removal in a future version.static <T,
K, U> Collector<T, com.google.common.collect.ImmutableListMultimap.Builder<K, U>, com.google.common.collect.ImmutableListMultimap<K, U>> toImmutableListMultimap
(Function<? super T, ? extends K> keyMapper, Function<? super T, ? extends List<U>> valueMapper) Deprecated, for removal: This API element is subject to removal in a future version.UseImmutableListMultimap.toImmutableListMultimap(Function, Function)
instead.static <T,
K, U> Collector<T, ?, com.google.common.collect.ImmutableMap<K, U>> toImmutableMap
(Function<? super T, ? extends K> keyMapper, Function<? super T, ? extends U> valueMapper) Deprecated, for removal: This API element is subject to removal in a future version.UseImmutableMap.toImmutableMap(Function, Function)
instead.static <T> Collector<T,
?, com.google.common.collect.ImmutableSet<T>> Deprecated, for removal: This API element is subject to removal in a future version.UseImmutableSet.toImmutableSet()
instead.static <T,
K, U> Collector<T, com.google.common.collect.ImmutableSetMultimap.Builder<K, U>, com.google.common.collect.ImmutableSetMultimap<K, U>> toImmutableSetMultimap
(Function<? super T, ? extends K> keyMapper, Function<? super T, ? extends Set<U>> valueMapper) Deprecated, for removal: This API element is subject to removal in a future version.UseImmutableSetMultimap.toImmutableSetMultimap(Function, Function)
instead.
-
Method Details
-
toImmutableList
@Deprecated(forRemoval=true) public static <T> Collector<T,?, toImmutableList()com.google.common.collect.ImmutableList<T>> Deprecated, for removal: This API element is subject to removal in a future version.UseImmutableList.toImmutableList()
instead. -
toImmutableSet
@Deprecated(forRemoval=true) public static <T> Collector<T,?, toImmutableSet()com.google.common.collect.ImmutableSet<T>> Deprecated, for removal: This API element is subject to removal in a future version.UseImmutableSet.toImmutableSet()
instead. -
toImmutableMap
@Deprecated(forRemoval=true) public static <T,K, Collector<T,U> ?, toImmutableMapcom.google.common.collect.ImmutableMap<K, U>> (Function<? super T, ? extends K> keyMapper, Function<? super T, ? extends U> valueMapper) Deprecated, for removal: This API element is subject to removal in a future version.UseImmutableMap.toImmutableMap(Function, Function)
instead. -
toImmutableListMultimap
@Deprecated(forRemoval=true) public static <T,K, Collector<T,U> com.google.common.collect.ImmutableListMultimap.Builder<K, toImmutableListMultimapU>, com.google.common.collect.ImmutableListMultimap<K, U>> (Function<? super T, ? extends K> keyMapper, Function<? super T, ? extends List<U>> valueMapper) Deprecated, for removal: This API element is subject to removal in a future version.UseImmutableListMultimap.toImmutableListMultimap(Function, Function)
instead. This will require some refactoring as it expects the value mapper to map one value instead of a list. -
toImmutableSetMultimap
@Deprecated(forRemoval=true) public static <T,K, Collector<T,U> com.google.common.collect.ImmutableSetMultimap.Builder<K, toImmutableSetMultimapU>, com.google.common.collect.ImmutableSetMultimap<K, U>> (Function<? super T, ? extends K> keyMapper, Function<? super T, ? extends Set<U>> valueMapper) Deprecated, for removal: This API element is subject to removal in a future version.UseImmutableSetMultimap.toImmutableSetMultimap(Function, Function)
instead. This will require some refactoring as it expects the value mapper to map one value instead of a list.
-
ImmutableList.toImmutableList()
instead.