Class TableCollectors

java.lang.Object
com.google.common.collect.TableCollectors

final class TableCollectors extends Object
Collectors utilities for common.collect.Table internals.
  • Constructor Details

    • TableCollectors

      private TableCollectors()
  • Method Details

    • toImmutableTable

      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)
    • toImmutableTable

      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

      static <T, R, C, V, I extends Table<R, C, V>> Collector<T,?,I> toTable(Function<? super T,? extends R> rowFunction, Function<? super T,? extends C> columnFunction, Function<? super T,? extends V> valueFunction, Supplier<I> tableSupplier)
    • toTable

      static <T, R, C, V, I extends Table<R, C, V>> Collector<T,?,I> 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)
    • mergeTables

      private static <R, C, V> void mergeTables(Table<R,C,V> table, R row, C column, V value, BinaryOperator<V> mergeFunction)