| Access | Constructor and Description |
|---|---|
| protected |
| Modifier and Type | Method and Description |
|---|---|
| public Set | cellSet()
Implements com. |
| public void | |
| public Map | column(C
key of column to search for in the table columnKey)Implements com. |
| public Set | columnKeySet()
Implements com. |
| public Map | columnMap()
Implements com. |
| public boolean | contains(Object
key of row to search for rowKey, Object key of column to search for columnKey)Implements com. true if the table contains a mapping with the specified row and column keys.
|
| public boolean | containsColumn(Object
key of column to search for columnKey)Implements com. true if the table contains a mapping with the specified column.
|
| public boolean | containsRow(Object
key of row to search for rowKey)Implements com. true if the table contains a mapping with the specified row key.
|
| public boolean | containsValue(Object
value to search for value)Implements com. true if the table contains a mapping with the specified value.
|
| protected abstract Table | delegate()
Implements abstract com. |
| public boolean | equals(Object
the reference object with which to compare. obj)Overrides java. Implements com. |
| public V | get(Object
key of row to search for rowKey, Object key of column to search for columnKey)Implements com. null if no such
mapping exists.
|
| public int | hashCode()
Overrides java. Implements com. |
| public boolean | isEmpty()
Implements com. true if the table contains no mappings.
|
| public V | put(R
row key that the value should be associated with rowKey, C column key that the value should be associated with columnKey, V value to be associated with the specified keys value)Implements com. |
| public void | putAll(Table<? extends R, ? extends C, ? extends V>
the table to add to this table table)Implements com. |
| public V | remove(Object
row key of mapping to be removed rowKey, Object column key of mapping to be removed columnKey)Implements com. |
| public Map | row(R
key of row to search for in the table rowKey)Implements com. |
| public Set | rowKeySet()
Implements com. |
| public Map | rowMap()
Implements com. |
| public int | size()
Implements com. |
| public Collection | values()
Implements com. |
| ForwardingTable | back to summary |
|---|---|
| protected ForwardingTable() Constructor for use by subclasses. | |
| cellSet | back to summary |
|---|---|
| public Set Implements com. Doc from com. Returns a set of all row key / column key / value triplets. Changes to the returned set will
update the underlying table, and vice versa. The cell set does not support the | |
| clear | back to summary |
|---|---|
| public void clear() Implements com. Doc from com. Removes all mappings from the table.
| |
| column | back to summary |
|---|---|
| public Map Implements com. Doc from com. Returns a view of all mappings that have the given column key. For each row key / column key / value mapping in the table with that column key, the returned map associates the row key with the value. If no mappings in the table have the provided column key, an empty map is returned. Changes to the returned map will update the underlying table, and vice versa. | |
| columnKeySet | back to summary |
|---|---|
| public Set Implements com. Doc from com. Returns a set of column keys that have one or more values in the table. Changes to the set will update the underlying table, and vice versa. | |
| columnMap | back to summary |
|---|---|
| public Map Implements com. Doc from com. Returns a view that associates each column key with the corresponding map from row keys to
values. Changes to the returned map will update this table. The returned map does not support
In contrast, the maps returned by | |
| contains | back to summary |
|---|---|
| public boolean contains(Object rowKey, Object columnKey) Implements com. Doc from com. Returns | |
| containsColumn | back to summary |
|---|---|
| public boolean containsColumn(Object columnKey) Implements com. Doc from com. Returns | |
| containsRow | back to summary |
|---|---|
| public boolean containsRow(Object rowKey) Implements com. Doc from com. Returns | |
| containsValue | back to summary |
|---|---|
| public boolean containsValue(Object value) Implements com. Doc from com. Returns | |
| delegate | back to summary |
|---|---|
| protected abstract Table Implements abstract com. Doc from com. Returns the backing delegate instance that methods are forwarded to. Abstract subclasses
generally override this method with an abstract method that has a more specific return type,
such as
| |
| equals | back to summary |
|---|---|
| public boolean equals(Object obj) Overrides java. Implements com. Doc from com. Compares the specified object with this table for equality. Two tables are equal when their
cell views, as returned by
| |
| get | back to summary |
|---|---|
| public V get(Object rowKey, Object columnKey) Implements com. Doc from com. Returns the value corresponding to the given row and column keys, or
| |
| hashCode | back to summary |
|---|---|
| public int hashCode() Overrides java. Implements com. Doc from com. Returns the hash code for this table. The hash code of a table is defined as the hash code of
its cell view, as returned by
| |
| isEmpty | back to summary |
|---|---|
| public boolean isEmpty() Implements com. Doc from com. Returns
| |
| put | back to summary |
|---|---|
| public V put(R rowKey, C columnKey, V value) Implements com. Doc from com. Associates the specified value with the specified keys. If the table already contained a mapping for those keys, the old value is replaced with the specified value.
| |
| putAll | back to summary |
|---|---|
| public void putAll(Table<? extends R, ? extends C, ? extends V> table) Implements com. Doc from com. Copies all mappings from the specified table to this table. The effect is equivalent to calling
| |
| remove | back to summary |
|---|---|
| public V remove(Object rowKey, Object columnKey) Implements com. Doc from com. Removes the mapping, if any, associated with the given keys.
| |
| row | back to summary |
|---|---|
| public Map Implements com. Doc from com. Returns a view of all mappings that have the given row key. For each row key / column key / value mapping in the table with that row key, the returned map associates the column key with the value. If no mappings in the table have the provided row key, an empty map is returned. Changes to the returned map will update the underlying table, and vice versa. | |
| rowKeySet | back to summary |
|---|---|
| public Set Implements com. Doc from com. Returns a set of row keys that have one or more values in the table. Changes to the set will update the underlying table, and vice versa. | |
| rowMap | back to summary |
|---|---|
| public Map Implements com. Doc from com. Returns a view that associates each row key with the corresponding map from column keys to
values. Changes to the returned map will update this table. The returned map does not support
In contrast, the maps returned by | |
| size | back to summary |
|---|---|
| public int size() Implements com. Doc from com. Returns the number of row key / column key / value mappings in the table.
| |
| values | back to summary |
|---|---|
| public Collection Implements com. Doc from com. Returns a collection of all values, which may contain duplicates. Changes to the returned collection will update the underlying table, and vice versa.
| |