Example usage for Java com.google.common.collect Table fields, constructors, methods, implement or subclass
The text is from its open source code.
Set | cellSet() Returns a set of all row key / column key / value triplets. |
void | clear() Removes all mappings from the table. |
Map | column(C columnKey) Returns a view of all mappings that have the given column key. |
Set | columnKeySet() Returns a set of column keys that have one or more values in the table. |
Map | columnMap() Returns a view that associates each column key with the corresponding map from row keys to values. |
boolean | contains(@Nullable Object rowKey, @Nullable Object columnKey) Returns true if the table contains a mapping with the specified row and column keys. |
boolean | containsColumn(@Nullable Object columnKey) Returns true if the table contains a mapping with the specified column. |
boolean | containsRow(@Nullable Object rowKey) Returns true if the table contains a mapping with the specified row key. |
V | get(@Nullable Object rowKey, @Nullable Object columnKey) Returns the value corresponding to the given row and column keys, or null if no such mapping exists. |
boolean | isEmpty() Returns true if the table contains no mappings. |
V | put(R rowKey, C columnKey, V value) Associates the specified value with the specified keys. |
void | putAll(Table extends R, ? extends C, ? extends V> table) Copies all mappings from the specified table to this table. |
V | remove(@Nullable Object rowKey, @Nullable Object columnKey) Removes the mapping, if any, associated with the given keys. |
Map | row(R rowKey) Returns a view of all mappings that have the given row key. |
Set | rowKeySet() Returns a set of row keys that have one or more values in the table. |
Map | rowMap() Returns a view that associates each row key with the corresponding map from column keys to values. |
int | size() Returns the number of row key / column key / value mappings in the table. |
String | toString() Returns a string representation of the object. |
Collection | values() Returns a collection of all values, which may contain duplicates. |