Uses of Interface
com.google.common.collect.Table
Packages that use Table
Package
Description
Collection interfaces and implementations, and other utilities for collections.
Testing utilities.
-
Uses of Table in com.google.common.collect
Subinterfaces of Table in com.google.common.collectModifier and TypeInterfaceDescriptioninterface
RowSortedTable<R,
C, V> Interface that extendsTable
and whose rows are sorted.Classes in com.google.common.collect that implement TableModifier and TypeClassDescription(package private) class
AbstractTable<R,
C, V> Skeletal, implementation-agnostic implementation of theTable
interface.final class
ArrayTable<R,
C, V> Fixed-sizeTable
implementation backed by a two-dimensional array.(package private) final class
DenseImmutableTable<R,
C, V> ARegularImmutableTable
optimized for dense data.class
ForwardingTable<R,
C, V> A table which forwards all its method calls to another table.class
HashBasedTable<R,
C, V> Implementation ofTable
using linked hash tables.class
ImmutableTable<R,
C, V> ATable
whose contents will never change, with many other important properties detailed atImmutableCollection
.(package private) class
RegularImmutableTable<R,
C, V> An implementation ofImmutableTable
holding an arbitrary number of cells.(package private) class
SingletonImmutableTable<R,
C, V> An implementation ofImmutableTable
that holds a single cell.(package private) final class
SparseImmutableTable<R,
C, V> ARegularImmutableTable
optimized for sparse data.(package private) class
StandardRowSortedTable<R,
C, V> Implementation ofTable
whose iteration ordering across row keys is sorted by their natural ordering or by a supplied comparator.(package private) class
StandardTable<R,
C, V> Table
implementation backed by a map that associates row keys with column key / value secondary maps.(package private) static final class
private static class
Tables.TransformedTable<R,
C, V1, V2> private static class
Tables.TransposeTable<C,
R, V> private static final class
private static class
Tables.UnmodifiableTable<R,
C, V> class
TreeBasedTable<R,
C, V> Implementation ofTable
whose row keys and column keys are ordered by their natural ordering or by supplied comparators.Fields in com.google.common.collect declared as TableModifier and TypeFieldDescriptionTables.UnmodifiableTable.delegate
Tables.TransformedTable.fromTable
Tables.TransposeTable.original
TableCollectors.ImmutableTableCollectorState.table
Methods in com.google.common.collect with type parameters of type TableModifier and TypeMethodDescriptionTableCollectors.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) TableCollectors.toTable
(Function<? super T, ? extends R> rowFunction, Function<? super T, ? extends C> columnFunction, Function<? super T, ? extends V> valueFunction, Supplier<I> tableSupplier) Tables.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) Returns aCollector
that accumulates elements into aTable
created using the specified supplier, whose cells are generated by applying the provided mapping functions to the input elements.Tables.toTable
(Function<? super T, ? extends R> rowFunction, Function<? super T, ? extends C> columnFunction, Function<? super T, ? extends V> valueFunction, Supplier<I> tableSupplier) Returns aCollector
that accumulates elements into aTable
created using the specified supplier, whose cells are generated by applying the provided mapping functions to the input elements.Methods in com.google.common.collect that return TableModifier and TypeMethodDescriptionForwardingTable.delegate()
Synchronized.SynchronizedTable.delegate()
Tables.UnmodifiableTable.delegate()
static <R,
C, V> Table <R, C, V> Tables.newCustomTable
(Map<R, Map<C, V>> backingMap, Supplier<? extends Map<C, V>> factory) Creates a table that uses the specified backing map and factory.static <R,
C, V> Table <R, C, V> Tables.synchronizedTable
(Table<R, C, V> table) Returns a synchronized (thread-safe) table backed by the specified table.(package private) static <R,
C, V> Table <R, C, V> static <R,
C, V1, V2>
Table<R, C, V2> Tables.transformValues
(Table<R, C, V1> fromTable, Function<? super V1, V2> function) Returns a view of a table where each value is transformed by a function.static <R,
C, V> Table <C, R, V> Creates a transposed view of a given table that flips its row and column keys.static <R,
C, V> Table <R, C, V> Tables.unmodifiableTable
(Table<? extends R, ? extends C, ? extends V> table) Returns an unmodifiable view of the specified table.Methods in com.google.common.collect with parameters of type TableModifier and TypeMethodDescriptionstatic <R,
C, V> ImmutableTable <R, C, V> Returns an immutable copy of the provided table.static <R,
C, V> ArrayTable <R, C, V> Creates anArrayTable
with the mappings in the provided table.static <R,
C, V> HashBasedTable <R, C, V> Creates aHashBasedTable
with the same mappings as the specified table.(package private) static boolean
Tables.equalsImpl
(Table<?, ?, ?> table, Object obj) private static <R,
C, V> void TableCollectors.mergeTables
(Table<R, C, V> table, R row, C column, V value, BinaryOperator<V> mergeFunction) void
void
Copies all mappings from the specified table to this table.void
Associates all of the given table's keys and values in the built table.final void
Deprecated.Unsupported operation.void
void
Copies all mappings from the specified table to this table.void
void
void
static <R,
C, V> Table <R, C, V> Tables.synchronizedTable
(Table<R, C, V> table) Returns a synchronized (thread-safe) table backed by the specified table.(package private) static <R,
C, V> Table <R, C, V> static <R,
C, V1, V2>
Table<R, C, V2> Tables.transformValues
(Table<R, C, V1> fromTable, Function<? super V1, V2> function) Returns a view of a table where each value is transformed by a function.static <R,
C, V> Table <C, R, V> Creates a transposed view of a given table that flips its row and column keys.static <R,
C, V> Table <R, C, V> Tables.unmodifiableTable
(Table<? extends R, ? extends C, ? extends V> table) Returns an unmodifiable view of the specified table.Constructors in com.google.common.collect with parameters of type TableModifierConstructorDescriptionprivate
ArrayTable
(Table<R, C, ? extends V> table) (package private)
(package private)
(package private)
TransposeTable
(Table<R, C, V> original) (package private)
UnmodifiableTable
(Table<? extends R, ? extends C, ? extends V> delegate) -
Uses of Table in com.google.common.testing
Methods in com.google.common.testing that return TableModifier and TypeMethodDescription(package private) static <R,
C, V> Table <R, C, V> FreshValueGenerator.generateTable
(R row, C column, V value)