static <T extends @Nullable java.lang.Object,K,V> java.util.stream.Collector<T,?,ImmutableListMultimap<K,V>> |
ImmutableListMultimap.flatteningToImmutableListMultimap(java.util.function.Function<? super T,? extends K> keyFunction,
java.util.function.Function<? super T,? extends java.util.stream.Stream<? extends V>> valuesFunction) |
Returns a Collector accumulating entries into an ImmutableListMultimap .
|
static <T extends @Nullable java.lang.Object,K,V> java.util.stream.Collector<T,?,ImmutableSetMultimap<K,V>> |
ImmutableSetMultimap.flatteningToImmutableSetMultimap(java.util.function.Function<? super T,? extends K> keyFunction,
java.util.function.Function<? super T,? extends java.util.stream.Stream<? extends V>> valuesFunction) |
Returns a Collector accumulating entries into an ImmutableSetMultimap .
|
static <T extends @Nullable java.lang.Object,K extends @Nullable java.lang.Object,V extends @Nullable java.lang.Object,M extends Multimap<K,V>> java.util.stream.Collector<T,?,M> |
Multimaps.flatteningToMultimap(java.util.function.Function<? super T,? extends K> keyFunction,
java.util.function.Function<? super T,? extends java.util.stream.Stream<? extends V>> valueFunction,
java.util.function.Supplier<M> multimapSupplier) |
Returns a Collector accumulating entries into a Multimap generated from the
specified supplier.
|
static <T extends @Nullable java.lang.Object> java.util.stream.Collector<T,?,java.util.List<T>> |
Comparators.greatest(int k,
java.util.Comparator<? super T> comparator) |
Returns a Collector that returns the k greatest (relative to the specified
Comparator ) input elements, in descending order, as an unmodifiable List .
|
static <T extends @Nullable java.lang.Object> java.util.stream.Collector<T,?,java.util.List<T>> |
Comparators.least(int k,
java.util.Comparator<? super T> comparator) |
Returns a Collector that returns the k smallest (relative to the specified
Comparator ) input elements, in ascending order, as an unmodifiable List .
|
static <T extends @Nullable java.lang.Object,K,V> java.util.stream.Collector<T,?,ImmutableBiMap<K,V>> |
ImmutableBiMap.toImmutableBiMap(java.util.function.Function<? super T,? extends K> keyFunction,
java.util.function.Function<? super T,? extends V> valueFunction) |
Returns a Collector that accumulates elements into an ImmutableBiMap whose keys
and values are the result of applying the provided mapping functions to the input elements.
|
static <T extends @Nullable java.lang.Object,K extends java.lang.Enum<K>,V> java.util.stream.Collector<T,?,ImmutableMap<K,V>> |
Maps.toImmutableEnumMap(java.util.function.Function<? super T,? extends K> keyFunction,
java.util.function.Function<? super T,? extends V> valueFunction) |
Returns a Collector that accumulates elements into an ImmutableMap whose keys
and values are the result of applying the provided mapping functions to the input elements.
|
static <T extends @Nullable java.lang.Object,K extends java.lang.Enum<K>,V> java.util.stream.Collector<T,?,ImmutableMap<K,V>> |
Maps.toImmutableEnumMap(java.util.function.Function<? super T,? extends K> keyFunction,
java.util.function.Function<? super T,? extends V> valueFunction,
java.util.function.BinaryOperator<V> mergeFunction) |
Returns a Collector that accumulates elements into an ImmutableMap whose keys
and values are the result of applying the provided mapping functions to the input elements.
|
static <E extends java.lang.Enum<E>> java.util.stream.Collector<E,?,ImmutableSet<E>> |
Sets.toImmutableEnumSet() |
Returns a Collector that accumulates the input elements into a new ImmutableSet
with an implementation specialized for enums.
|
static <E> java.util.stream.Collector<E,?,ImmutableList<E>> |
ImmutableList.toImmutableList() |
Returns a Collector that accumulates the input elements into a new
ImmutableList , in encounter order.
|
static <T extends @Nullable java.lang.Object,K,V> java.util.stream.Collector<T,?,ImmutableListMultimap<K,V>> |
ImmutableListMultimap.toImmutableListMultimap(java.util.function.Function<? super T,? extends K> keyFunction,
java.util.function.Function<? super T,? extends V> valueFunction) |
Returns a Collector that accumulates elements into an ImmutableListMultimap
whose keys and values are the result of applying the provided mapping functions to the input
elements.
|
static <T extends @Nullable java.lang.Object,K,V> java.util.stream.Collector<T,?,ImmutableMap<K,V>> |
ImmutableBiMap.toImmutableMap(java.util.function.Function<? super T,? extends K> keyFunction,
java.util.function.Function<? super T,? extends V> valueFunction) |
Deprecated.
|
static <T extends @Nullable java.lang.Object,K,V> java.util.stream.Collector<T,?,ImmutableMap<K,V>> |
ImmutableBiMap.toImmutableMap(java.util.function.Function<? super T,? extends K> keyFunction,
java.util.function.Function<? super T,? extends V> valueFunction,
java.util.function.BinaryOperator<V> mergeFunction) |
Deprecated.
|
static <T extends @Nullable java.lang.Object,K,V> java.util.stream.Collector<T,?,ImmutableMap<K,V>> |
ImmutableMap.toImmutableMap(java.util.function.Function<? super T,? extends K> keyFunction,
java.util.function.Function<? super T,? extends V> valueFunction) |
Returns a Collector that accumulates elements into an ImmutableMap whose keys
and values are the result of applying the provided mapping functions to the input elements.
|
static <T extends @Nullable java.lang.Object,K,V> java.util.stream.Collector<T,?,ImmutableMap<K,V>> |
ImmutableMap.toImmutableMap(java.util.function.Function<? super T,? extends K> keyFunction,
java.util.function.Function<? super T,? extends V> valueFunction,
java.util.function.BinaryOperator<V> mergeFunction) |
Returns a Collector that accumulates elements into an ImmutableMap whose keys
and values are the result of applying the provided mapping functions to the input elements.
|
static <T extends @Nullable java.lang.Object,K,V> java.util.stream.Collector<T,?,ImmutableMap<K,V>> |
ImmutableSortedMap.toImmutableMap(java.util.function.Function<? super T,? extends K> keyFunction,
java.util.function.Function<? super T,? extends V> valueFunction) |
Deprecated.
|
static <T extends @Nullable java.lang.Object,K,V> java.util.stream.Collector<T,?,ImmutableMap<K,V>> |
ImmutableSortedMap.toImmutableMap(java.util.function.Function<? super T,? extends K> keyFunction,
java.util.function.Function<? super T,? extends V> valueFunction,
java.util.function.BinaryOperator<V> mergeFunction) |
Deprecated.
|
static <E> java.util.stream.Collector<E,?,ImmutableMultiset<E>> |
ImmutableMultiset.toImmutableMultiset() |
Returns a Collector that accumulates the input elements into a new
ImmutableMultiset .
|
static <T extends @Nullable java.lang.Object,E> java.util.stream.Collector<T,?,ImmutableMultiset<E>> |
ImmutableMultiset.toImmutableMultiset(java.util.function.Function<? super T,? extends E> elementFunction,
java.util.function.ToIntFunction<? super T> countFunction) |
Returns a Collector that accumulates elements into an ImmutableMultiset whose
elements are the result of applying elementFunction to the inputs, with counts equal to
the result of applying countFunction to the inputs.
|
static <E> java.util.stream.Collector<E,?,ImmutableMultiset<E>> |
ImmutableSortedMultiset.toImmutableMultiset() |
Deprecated.
|
static <T extends @Nullable java.lang.Object,E> java.util.stream.Collector<T,?,ImmutableMultiset<E>> |
ImmutableSortedMultiset.toImmutableMultiset(java.util.function.Function<? super T,? extends E> elementFunction,
java.util.function.ToIntFunction<? super T> countFunction) |
Deprecated.
|
static <T extends @Nullable java.lang.Object,K extends java.lang.Comparable<? super K>,V> java.util.stream.Collector<T,?,ImmutableRangeMap<K,V>> |
ImmutableRangeMap.toImmutableRangeMap(java.util.function.Function<? super T,Range<K>> keyFunction,
java.util.function.Function<? super T,? extends V> valueFunction) |
Returns a Collector that accumulates the input elements into a new
ImmutableRangeMap .
|
static <E extends java.lang.Comparable<? super E>> java.util.stream.Collector<Range<E>,?,ImmutableRangeSet<E>> |
ImmutableRangeSet.toImmutableRangeSet() |
Returns a Collector that accumulates the input elements into a new
ImmutableRangeSet .
|
static <E> java.util.stream.Collector<E,?,ImmutableSet<E>> |
ImmutableSet.toImmutableSet() |
Returns a Collector that accumulates the input elements into a new
ImmutableSet .
|
static <E> java.util.stream.Collector<E,?,ImmutableSet<E>> |
ImmutableSortedSet.toImmutableSet() |
Deprecated.
|
static <T extends @Nullable java.lang.Object,K,V> java.util.stream.Collector<T,?,ImmutableSetMultimap<K,V>> |
ImmutableSetMultimap.toImmutableSetMultimap(java.util.function.Function<? super T,? extends K> keyFunction,
java.util.function.Function<? super T,? extends V> valueFunction) |
Returns a Collector that accumulates elements into an ImmutableSetMultimap
whose keys and values are the result of applying the provided mapping functions to the input
elements.
|
static <T extends @Nullable java.lang.Object,K,V> java.util.stream.Collector<T,?,ImmutableSortedMap<K,V>> |
ImmutableSortedMap.toImmutableSortedMap(java.util.Comparator<? super K> comparator,
java.util.function.Function<? super T,? extends K> keyFunction,
java.util.function.Function<? super T,? extends V> valueFunction) |
Returns a Collector that accumulates elements into an ImmutableSortedMap whose
keys and values are the result of applying the provided mapping functions to the input
elements.
|
static <T extends @Nullable java.lang.Object,K,V> java.util.stream.Collector<T,?,ImmutableSortedMap<K,V>> |
ImmutableSortedMap.toImmutableSortedMap(java.util.Comparator<? super K> comparator,
java.util.function.Function<? super T,? extends K> keyFunction,
java.util.function.Function<? super T,? extends V> valueFunction,
java.util.function.BinaryOperator<V> mergeFunction) |
Returns a Collector that accumulates elements into an ImmutableSortedMap whose
keys and values are the result of applying the provided mapping functions to the input
elements.
|
static <E> java.util.stream.Collector<E,?,ImmutableSortedMultiset<E>> |
ImmutableSortedMultiset.toImmutableSortedMultiset(java.util.Comparator<? super E> comparator) |
Returns a Collector that accumulates the input elements into a new
ImmutableMultiset .
|
static <T extends @Nullable java.lang.Object,E> java.util.stream.Collector<T,?,ImmutableSortedMultiset<E>> |
ImmutableSortedMultiset.toImmutableSortedMultiset(java.util.Comparator<? super E> comparator,
java.util.function.Function<? super T,? extends E> elementFunction,
java.util.function.ToIntFunction<? super T> countFunction) |
Returns a Collector that accumulates elements into an ImmutableSortedMultiset
whose elements are the result of applying elementFunction to the inputs, with counts
equal to the result of applying countFunction to the inputs.
|
static <E> java.util.stream.Collector<E,?,ImmutableSortedSet<E>> |
ImmutableSortedSet.toImmutableSortedSet(java.util.Comparator<? super E> comparator) |
Returns a Collector that accumulates the input elements into a new
ImmutableSortedSet , ordered by the specified comparator.
|
static <T extends @Nullable java.lang.Object,R,C,V> java.util.stream.Collector<T,?,ImmutableTable<R,C,V>> |
ImmutableTable.toImmutableTable(java.util.function.Function<? super T,? extends R> rowFunction,
java.util.function.Function<? super T,? extends C> columnFunction,
java.util.function.Function<? super T,? extends V> valueFunction) |
Returns a Collector that accumulates elements into an ImmutableTable .
|
static <T extends @Nullable java.lang.Object,R,C,V> java.util.stream.Collector<T,?,ImmutableTable<R,C,V>> |
ImmutableTable.toImmutableTable(java.util.function.Function<? super T,? extends R> rowFunction,
java.util.function.Function<? super T,? extends C> columnFunction,
java.util.function.Function<? super T,? extends V> valueFunction,
java.util.function.BinaryOperator<V> mergeFunction) |
Returns a Collector that accumulates elements into an ImmutableTable .
|
static <T extends @Nullable java.lang.Object,K extends @Nullable java.lang.Object,V extends @Nullable java.lang.Object,M extends Multimap<K,V>> java.util.stream.Collector<T,?,M> |
Multimaps.toMultimap(java.util.function.Function<? super T,? extends K> keyFunction,
java.util.function.Function<? super T,? extends V> valueFunction,
java.util.function.Supplier<M> multimapSupplier) |
Returns a Collector accumulating entries into a Multimap generated from the
specified supplier.
|
static <T extends @Nullable java.lang.Object,E extends @Nullable java.lang.Object,M extends Multiset<E>> java.util.stream.Collector<T,?,M> |
Multisets.toMultiset(java.util.function.Function<? super T,E> elementFunction,
java.util.function.ToIntFunction<? super T> countFunction,
java.util.function.Supplier<M> multisetSupplier) |
Returns a Collector that accumulates elements into a multiset created via the specified
Supplier , whose elements are the result of applying elementFunction to the
inputs, with counts equal to the result of applying countFunction to the inputs.
|
static <T extends @Nullable java.lang.Object,R extends @Nullable java.lang.Object,C extends @Nullable java.lang.Object,V,I extends Table<R,C,V>> java.util.stream.Collector<T,?,I> |
Tables.toTable(java.util.function.Function<? super T,? extends R> rowFunction,
java.util.function.Function<? super T,? extends C> columnFunction,
java.util.function.Function<? super T,? extends V> valueFunction,
java.util.function.BinaryOperator<V> mergeFunction,
java.util.function.Supplier<I> tableSupplier) |
Returns a Collector that accumulates elements into a Table created using the
specified supplier, whose cells are generated by applying the provided mapping functions to the
input elements.
|
static <T extends @Nullable java.lang.Object,R extends @Nullable java.lang.Object,C extends @Nullable java.lang.Object,V,I extends Table<R,C,V>> java.util.stream.Collector<T,?,I> |
Tables.toTable(java.util.function.Function<? super T,? extends R> rowFunction,
java.util.function.Function<? super T,? extends C> columnFunction,
java.util.function.Function<? super T,? extends V> valueFunction,
java.util.function.Supplier<I> tableSupplier) |
Returns a Collector that accumulates elements into a Table created using the
specified supplier, whose cells are generated by applying the provided mapping functions to the
input elements.
|