Package com.google.common.collect
Class TableCollectors
java.lang.Object
com.google.common.collect.TableCollectors
Collectors utilities for
common.collect.Table
internals.-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprivate static final class
private static final class
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate static <R,
C, V> void mergeTables
(Table<R, C, V> table, R row, C column, V value, BinaryOperator<V> mergeFunction) (package private) static <T,
R, C, V>
Collector<T, ?, ImmutableTable<R, C, V>> toImmutableTable
(Function<? super T, ? extends R> rowFunction, Function<? super T, ? extends C> columnFunction, Function<? super T, ? extends V> valueFunction) (package private) static <T,
R, C, V>
Collector<T, ?, ImmutableTable<R, C, V>> toImmutableTable
(Function<? super T, ? extends R> rowFunction, Function<? super T, ? extends C> columnFunction, Function<? super T, ? extends V> valueFunction, BinaryOperator<V> mergeFunction) toTable
(Function<? super T, ? extends R> rowFunction, Function<? super T, ? extends C> columnFunction, Function<? super T, ? extends V> valueFunction, BinaryOperator<V> mergeFunction, Supplier<I> tableSupplier) toTable
(Function<? super T, ? extends R> rowFunction, Function<? super T, ? extends C> columnFunction, Function<? super T, ? extends V> valueFunction, Supplier<I> tableSupplier)
-
Constructor Details
-
TableCollectors
private TableCollectors()
-
-
Method Details
-
toImmutableTable
static <T,R, Collector<T,C, V> ?, toImmutableTableImmutableTable<R, C, V>> (Function<? super T, ? extends R> rowFunction, Function<? super T, ? extends C> columnFunction, Function<? super T, ? extends V> valueFunction) -
toImmutableTable
static <T,R, Collector<T,C, V> ?, toImmutableTableImmutableTable<R, C, V>> (Function<? super T, ? extends R> rowFunction, Function<? super T, ? extends C> columnFunction, Function<? super T, ? extends V> valueFunction, BinaryOperator<V> mergeFunction) -
toTable
-
toTable
-
mergeTables
private static <R,C, void mergeTablesV> (Table<R, C, V> table, R row, C column, V value, BinaryOperator<V> mergeFunction)
-