Class ImmutableCollectors

java.lang.Object
me.lucko.luckperms.common.util.ImmutableCollectors

public final class ImmutableCollectors extends Object
  • Method Details

    • toList

      public static <T> Collector<T, com.google.common.collect.ImmutableList.Builder<T>, com.google.common.collect.ImmutableList<T>> toList()
    • toSet

      public static <T> Collector<T, com.google.common.collect.ImmutableSet.Builder<T>, com.google.common.collect.ImmutableSet<T>> toSet()
    • toEnumSet

      public static <T extends Enum<T>> Collector<T, EnumSet<T>, com.google.common.collect.ImmutableSet<T>> toEnumSet(Class<T> clazz)
    • toSortedSet

      public static <E extends Comparable<? super E>> Collector<E, ?, com.google.common.collect.ImmutableSortedSet<E>> toSortedSet()
    • toSortedSet

      public static <E> Collector<E, ?, com.google.common.collect.ImmutableSortedSet<E>> toSortedSet(Comparator<? super E> comparator)
    • toMap

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

      public static <T, K extends Enum<K>, V> Collector<T, EnumMap<K,V>, com.google.common.collect.ImmutableMap<K,V>> toEnumMap(Class<K> clazz, Function<? super T, ? extends K> keyMapper, Function<? super T, ? extends V> valueMapper)