Class Collectors3

java.lang.Object
org.apache.cassandra.utils.Collectors3

public class Collectors3 extends Object
Some extra Collector implementations.

Named Collectors3 just in case Guava ever makes a Collectors2

  • Constructor Details

    • Collectors3

      public Collectors3()
  • Method Details

    • toImmutableList

      public static <T> Collector<T,?,com.google.common.collect.ImmutableList<T>> toImmutableList()
    • toImmutableSet

      public static <T> Collector<T,?,com.google.common.collect.ImmutableSet<T>> toImmutableSet()
    • toImmutableMap

      public static <K, V> Collector<Map.Entry<K,V>,?,com.google.common.collect.ImmutableMap<K,V>> toImmutableMap()
    • toImmutableMap

      public static <T, K, V> Collector<T,?,com.google.common.collect.ImmutableMap<K,V>> toImmutableMap(Function<? super T,? extends K> keyMapper, Function<? super T,? extends V> valueMapper)