public final class BambooCollectors extends Object
Modifier and Type | Method and Description |
---|---|
static <T> BinaryOperator<T> |
throwingMerger() |
static <T> Collector<T,Collection<T>,T[]> |
toArray(Class<T> clazz) |
static <K,V> Collector<V,?,Map<K,V>> |
toHashMap(Function<V,K> keyGenerator) |
static <E,K,V> Collector<E,?,Map<K,V>> |
toImmutableMap(Function<E,K> keyTransformer,
Function<E,V> valueTransformer) |
static Collector<Map.Entry<String,String>,?,Map<String,String>> |
toMap() |
static <K,V> Collector<V,?,Map<K,V>> |
toMap(Function<V,K> keyGenerator) |
static <K,V,M extends Map<K,V>> |
toMap(Function<V,K> keyGenerator,
Supplier<M> mapSupplier) |
static <V,K> Collector<V,com.google.common.collect.Multimap<K,V>,com.google.common.collect.Multimap<K,V>> |
toMultimap(Function<V,K> keyGenerator) |
static <V,K,M extends com.google.common.collect.Multimap<K,V>> |
toMultimap(Function<V,K> keyGenerator,
Supplier<M> multiMapSupplier) |
public static <T> Collector<T,Collection<T>,T[]> toArray(Class<T> clazz)
public static <K,V,M extends Map<K,V>> Collector<V,?,M> toMap(Function<V,K> keyGenerator, Supplier<M> mapSupplier)
public static <T> BinaryOperator<T> throwingMerger()
public static <V,K> Collector<V,com.google.common.collect.Multimap<K,V>,com.google.common.collect.Multimap<K,V>> toMultimap(Function<V,K> keyGenerator)
@NotNull public static <V,K,M extends com.google.common.collect.Multimap<K,V>> Collector<V,M,M> toMultimap(Function<V,K> keyGenerator, Supplier<M> multiMapSupplier)
Copyright © 2017 Atlassian Software Systems Pty Ltd. All rights reserved.