Top Description Inners Constructors Methods
com.google.common.collect

pack-priv final Class TableCollectors

extends Object
Class Inheritance
Annotations
@GwtCompatible
@ElementTypesAreNonnullByDefault
Static Imports
com.google.common.base.Preconditions.checkNotNull

Collectors utilities for common.collect.Table internals.

Nested and Inner Type Summary

Modifier and TypeClass and Description
private static class
private static class

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
private static <R extends @Nullable Object, C extends @Nullable Object, V> void
mergeTables(Table<R, C, V> table, R row, C column, V value, BinaryOperator<V> mergeFunction)

pack-priv static <T extends @Nullable Object, 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)

pack-priv static <T extends @Nullable Object, 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)

pack-priv static <T extends @Nullable Object, R extends @Nullable Object, C extends @Nullable Object, 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)

pack-priv static <T extends @Nullable Object, R extends @Nullable Object, C extends @Nullable Object, 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)

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

TableCollectorsback to summary
private TableCollectors()

Method Detail

mergeTablesback to summary
private static <R extends @Nullable Object, C extends @Nullable Object, V> void mergeTables(Table<R, C, V> table, R row, C column, V value, BinaryOperator<V> mergeFunction)
toImmutableTableback to summary
pack-priv static <T extends @Nullable Object, 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)
toImmutableTableback to summary
pack-priv static <T extends @Nullable Object, 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)
toTableback to summary
pack-priv static <T extends @Nullable Object, R extends @Nullable Object, C extends @Nullable Object, 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)
toTableback to summary
pack-priv static <T extends @Nullable Object, R extends @Nullable Object, C extends @Nullable Object, 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)
com.google.common.collect back to summary

private final Class TableCollectors.ImmutableTableCollectorState<R, C, V>

extends Object
Class Inheritance
  • java.lang.Object
  • com.google.common.collect.TableCollectors.ImmutableTableCollectorState

Field Summary

Modifier and TypeField and Description
pack-priv final List<TableCollectors.MutableCell<R, C, V>>
pack-priv final Table<R, C, TableCollectors.MutableCell<R, C, V>>

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
pack-priv TableCollectors.ImmutableTableCollectorState<R, C, V>
pack-priv void
put(R row, C column, V value, BinaryOperator<V> merger)

pack-priv ImmutableTable<R, C, V>
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

insertionOrderback to summary
pack-priv final List<TableCollectors.MutableCell<R, C, V>> insertionOrder
tableback to summary
pack-priv final Table<R, C, TableCollectors.MutableCell<R, C, V>> table

Constructor Detail

ImmutableTableCollectorStateback to summary
private ImmutableTableCollectorState()

Method Detail

combineback to summary
pack-priv TableCollectors.ImmutableTableCollectorState<R, C, V> combine(TableCollectors.ImmutableTableCollectorState<R, C, V> other, BinaryOperator<V> merger)
putback to summary
pack-priv void put(R row, C column, V value, BinaryOperator<V> merger)
toTableback to summary
pack-priv ImmutableTable<R, C, V> toTable()
com.google.common.collect back to summary

private final Class TableCollectors.MutableCell<R, C, V>

extends Tables.AbstractCell<R, C, V>
Class Inheritance

Field Summary

Modifier and TypeField and Description
private final C
private final R
private V

Constructor Summary

AccessConstructor and Description
pack-priv
MutableCell(R row, C column, V value)

Method Summary

Modifier and TypeMethod and Description
public C
getColumnKey()

Implements com.google.common.collect.Table.Cell.getColumnKey.

Returns the column key of this cell.
public R
getRowKey()

Implements com.google.common.collect.Table.Cell.getRowKey.

Returns the row key of this cell.
public V
getValue()

Implements com.google.common.collect.Table.Cell.getValue.

Returns the value of this cell.
pack-priv void
merge(V value, BinaryOperator<V> mergeFunction)

Inherited from com.google.common.collect.Tables.AbstractCell:
equalshashCodetoString

Field Detail

columnback to summary
private final C column
rowback to summary
private final R row
valueback to summary
private V value

Constructor Detail

MutableCellback to summary
pack-priv MutableCell(R row, C column, V value)

Method Detail

getColumnKeyback to summary
public C getColumnKey()

Implements com.google.common.collect.Table.Cell.getColumnKey.

Doc from com.google.common.collect.Table.Cell.getColumnKey.

Returns the column key of this cell.

Annotations
@Override
getRowKeyback to summary
public R getRowKey()

Implements com.google.common.collect.Table.Cell.getRowKey.

Doc from com.google.common.collect.Table.Cell.getRowKey.

Returns the row key of this cell.

Annotations
@Override
getValueback to summary
public V getValue()

Implements com.google.common.collect.Table.Cell.getValue.

Doc from com.google.common.collect.Table.Cell.getValue.

Returns the value of this cell.

Annotations
@Override
mergeback to summary
pack-priv void merge(V value, BinaryOperator<V> mergeFunction)