| Package | Description |
|---|---|
| com.google.common.collect |
This package contains generic collection interfaces and implementations, and other utilities for working with collections.
|
| Modifier and Type | Interface and Description |
|---|---|
interface |
RowSortedTable<R
Interface that extends
Table and whose rows are sorted.
|
| Modifier and Type | Class and Description |
|---|---|
class |
ArrayTable<R
Fixed-size
Table implementation backed by a two-dimensional array.
|
class |
ForwardingTable<R
A table which forwards all its method calls to another table.
|
class |
HashBasedTable<R
Implementation of
Table using hash tables.
|
class |
ImmutableTable<R
A
Table whose contents will never change, with many other important properties detailed at
ImmutableCollection.
|
class |
TreeBasedTable<R
Implementation of
Table whose row keys and column keys are ordered by their natural ordering or by supplied comparators.
|
| Modifier and Type | Method and Description |
|---|---|
protected abstract Table |
ForwardingTable.delegate()
|
static <R |
Tables.newCustomTable(Map
Creates a table that uses the specified backing map and factory.
|
static <R |
Tables.transformValues(Table
Returns a view of a table where each value is transformed by a function.
|
static <R |
Tables.transpose(Table
Creates a transposed view of a given table that flips its row and column keys.
|
static <R |
Tables.unmodifiableTable(Table
Returns an unmodifiable view of the specified table.
|
| Modifier and Type | Method and Description |
|---|---|
static <R |
ImmutableTable.copyOf(Table
Returns an immutable copy of the provided table.
|
static <R |
HashBasedTable.create(Table
Creates a
HashBasedTable with the same mappings as the specified table.
|
static <R |
ArrayTable.create(Table
Creates an
ArrayTable with the mappings in the provided table.
|
void |
ForwardingTable.putAll(Table
|
void |
ArrayTable.putAll(Table
Copies all mappings from the specified table to this table.
|
void |
Table.putAll(Table
Copies all mappings from the specified table to this table.
|
void |
ImmutableTable.putAll(Table
Deprecated.
Unsupported operation.
|
ImmutableTable |
ImmutableTable.Builder.putAll(Table
Associates all of the given table's keys and values in the built table.
|
static <R |
Tables.transformValues(Table
Returns a view of a table where each value is transformed by a function.
|
static <R |
Tables.transpose(Table
Creates a transposed view of a given table that flips its row and column keys.
|
static <R |
Tables.unmodifiableTable(Table
Returns an unmodifiable view of the specified table.
|