Class ImmutableCollectors
java.lang.Object
me.lucko.luckperms.common.util.ImmutableCollectors
-
Method Summary
Modifier and TypeMethodDescriptionstatic <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) static <T> Collector<T, com.google.common.collect.ImmutableList.Builder<T>, com.google.common.collect.ImmutableList<T>> toList()static <T,K, V> Collector <T, com.google.common.collect.ImmutableMap.Builder<K, V>, com.google.common.collect.ImmutableMap<K, V>> static <T> Collector<T, com.google.common.collect.ImmutableSet.Builder<T>, com.google.common.collect.ImmutableSet<T>> toSet()static <E extends Comparable<? super E>>
Collector<E, ?, com.google.common.collect.ImmutableSortedSet<E>> static <E> Collector<E, ?, com.google.common.collect.ImmutableSortedSet<E>> toSortedSet(Comparator<? super E> comparator)
-
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
-
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
-
toEnumMap
-