Package | Description |
---|---|
com.google.common.collect |
This package contains generic collection interfaces and implementations, and
other utilities for working with collections.
|
com.google.common.testing |
This package contains testing utilities.
|
Modifier and Type | Interface and Description |
---|---|
interface |
RowSortedTable<R,C,V>
Interface that extends
Table and whose rows are sorted. |
Modifier and Type | Class and Description |
---|---|
(package private) class |
AbstractTable<R,C,V>
Skeletal, implementation-agnostic implementation of the
Table interface. |
class |
ArrayTable<R,C,V>
Fixed-size
Table implementation backed by a two-dimensional array. |
(package private) class |
DenseImmutableTable<R,C,V>
A
RegularImmutableTable 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 of
Table using linked hash tables. |
class |
ImmutableTable<R,C,V>
A
Table whose contents will never change, with many other important
properties detailed at ImmutableCollection . |
(package private) class |
RegularImmutableTable<R,C,V>
An implementation of
ImmutableTable holding an arbitrary number of
cells. |
(package private) class |
SingletonImmutableTable<R,C,V>
An implementation of
ImmutableTable that holds a single cell. |
(package private) class |
SparseImmutableTable<R,C,V>
A
RegularImmutableTable optimized for sparse data. |
(package private) class |
StandardRowSortedTable<R,C,V>
Implementation of
Table 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. |
private static class |
Tables.TransformedTable<R,C,V1,V2> |
private static class |
Tables.TransposeTable<C,R,V> |
(package private) static class |
Tables.UnmodifiableRowSortedMap<R,C,V> |
private static class |
Tables.UnmodifiableTable<R,C,V> |
class |
TreeBasedTable<R,C,V>
Implementation of
Table whose row keys and column keys are ordered
by their natural ordering or by supplied comparators. |
Modifier and Type | Field and Description |
---|---|
(package private) Table<? extends R,? extends C,? extends V> |
Tables.UnmodifiableTable.delegate |
(package private) Table<R,C,V1> |
Tables.TransformedTable.fromTable |
(package private) Table<R,C,V> |
Tables.TransposeTable.original |
Modifier and Type | Method and Description |
---|---|
protected abstract Table<R,C,V> |
ForwardingTable.delegate() |
protected Table<R,C,V> |
Tables.UnmodifiableTable.delegate() |
static <R,C,V> Table<R,C,V> |
Tables.newCustomTable(java.util.Map<R,java.util.Map<C,V>> backingMap,
Supplier<? extends java.util.Map<C,V>> factory)
Creates a table that uses the specified backing map and factory.
|
static <R,C,V1,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> |
Tables.transpose(Table<R,C,V> table)
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.
|
Modifier and Type | Method and Description |
---|---|
static <R,C,V> ImmutableTable<R,C,V> |
ImmutableTable.copyOf(Table<? extends R,? extends C,? extends V> table)
Returns an immutable copy of the provided table.
|
static <R,C,V> HashBasedTable<R,C,V> |
HashBasedTable.create(Table<? extends R,? extends C,? extends V> table)
Creates a
HashBasedTable with the same mappings as the specified
table. |
static <R,C,V> ArrayTable<R,C,V> |
ArrayTable.create(Table<R,C,V> table)
Creates an
ArrayTable with the mappings in the provided table. |
(package private) static boolean |
Tables.equalsImpl(Table<?,?,?> table,
java.lang.Object obj) |
void |
Tables.TransposeTable.putAll(Table<? extends C,? extends R,? extends V> table) |
void |
AbstractTable.putAll(Table<? extends R,? extends C,? extends V> table) |
void |
ArrayTable.putAll(Table<? extends R,? extends C,? extends V> table)
Copies all mappings from the specified table to this table.
|
void |
ForwardingTable.putAll(Table<? extends R,? extends C,? extends V> table) |
void |
Tables.UnmodifiableTable.putAll(Table<? extends R,? extends C,? extends V> table) |
void |
Table.putAll(Table<? extends R,? extends C,? extends V> table)
Copies all mappings from the specified table to this table.
|
void |
ImmutableTable.putAll(Table<? extends R,? extends C,? extends V> table)
Deprecated.
Unsupported operation.
|
ImmutableTable.Builder<R,C,V> |
ImmutableTable.Builder.putAll(Table<? extends R,? extends C,? extends V> table)
Associates all of the given table's keys and values in the built table.
|
void |
Tables.TransformedTable.putAll(Table<? extends R,? extends C,? extends V2> table) |
static <R,C,V1,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> |
Tables.transpose(Table<R,C,V> table)
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.
|
Constructor and Description |
---|
ArrayTable(Table<R,C,V> table) |
TransformedTable(Table<R,C,V1> fromTable,
Function<? super V1,V2> function) |
TransposeTable(Table<R,C,V> original) |
UnmodifiableTable(Table<? extends R,? extends C,? extends V> delegate) |
Modifier and Type | Method and Description |
---|---|
private static <R,C,V> Table<R,C,V> |
FreshValueGenerator.generateTable(R row,
C column,
V value) |