Class TableCollectors


  • final class TableCollectors
    extends java.lang.Object
    Collectors utilities for common.collect.Table internals.
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      private TableCollectors()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      private static <R,​C,​V>
      void
      mergeTables​(Table<R,​C,​V> table, R row, C column, V value, java.util.function.BinaryOperator<V> mergeFunction)  
      (package private) static <T,​R,​C,​V>
      java.util.stream.Collector<T,​?,​ImmutableTable<R,​C,​V>>
      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)  
      (package private) static <T,​R,​C,​V>
      java.util.stream.Collector<T,​?,​ImmutableTable<R,​C,​V>>
      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)  
      (package private) static <T,​R,​C,​V,​I extends Table<R,​C,​V>>
      java.util.stream.Collector<T,​?,​I>
      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)  
      (package private) static <T,​R,​C,​V,​I extends Table<R,​C,​V>>
      java.util.stream.Collector<T,​?,​I>
      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)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • TableCollectors

        private TableCollectors()
    • Method Detail

      • toImmutableTable

        static <T,​R,​C,​V> java.util.stream.Collector<T,​?,​ImmutableTable<R,​C,​V>> 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)
      • toImmutableTable

        static <T,​R,​C,​V> java.util.stream.Collector<T,​?,​ImmutableTable<R,​C,​V>> 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)
      • toTable

        static <T,​R,​C,​V,​I extends Table<R,​C,​V>> java.util.stream.Collector<T,​?,​I> 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)
      • toTable

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

        private static <R,​C,​V> void mergeTables​(Table<R,​C,​V> table,
                                                            R row,
                                                            C column,
                                                            V value,
                                                            java.util.function.BinaryOperator<V> mergeFunction)