Interface RowSortedTable<R extends @Nullable Object, C extends @Nullable Object, V extends @Nullable Object>
- All Superinterfaces:
Table<R,C, V>
- All Known Implementing Classes:
TreeBasedTable
@GwtCompatible
public interface RowSortedTable<R extends @Nullable Object, C extends @Nullable Object, V extends @Nullable Object>
extends Table<R,C,V>
Interface that extends
Table and whose rows are sorted.
The rowKeySet() method returns a SortedSet and the rowMap() method
returns a SortedMap, instead of the Set and Map specified by the Table interface.
- Since:
- 8.0
- Author:
- Warren Dukes
-
Nested Class Summary
Nested classes/interfaces inherited from interface Table
Table.Cell<R,C, V> -
Method Summary
Methods inherited from interface Table
cellSet, clear, column, columnKeySet, columnMap, contains, containsColumn, containsRow, containsValue, equals, get, hashCode, isEmpty, put, putAll, remove, row, size, valuesModifier and TypeMethodDescriptionSet<Table.Cell<R, C, V>> cellSet()Returns a set of all row key / column key / value triplets.voidclear()Removes all mappings from the table.Returns a view of all mappings that have the given column key.Returns a set of column keys that have one or more values in the table.Returns a view that associates each column key with the corresponding map from row keys to values.booleanReturnstrueif the table contains a mapping with the specified row and column keys.booleancontainsColumn(@Nullable Object columnKey) Returnstrueif the table contains a mapping with the specified column.booleancontainsRow(@Nullable Object rowKey) Returnstrueif the table contains a mapping with the specified row key.booleancontainsValue(@Nullable Object value) Returnstrueif the table contains a mapping with the specified value.booleanCompares the specified object with this table for equality.Returns the value corresponding to the given row and column keys, ornullif no such mapping exists.inthashCode()Returns the hash code for this table.booleanisEmpty()Returnstrueif the table contains no mappings.Associates the specified value with the specified keys.voidCopies all mappings from the specified table to this table.Removes the mapping, if any, associated with the given keys.Returns a view of all mappings that have the given row key.intsize()Returns the number of row key / column key / value mappings in the table.values()Returns a collection of all values, which may contain duplicates.
-
Method Details
-
rowKeySet
-
rowMap
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 supportput()orputAll(), orsetValue()on its entries.In contrast, the maps returned by
rowMap().get()have the same behavior as those returned byTable.row(R). Those maps may supportsetValue(),put(), andputAll().This method returns a
SortedMap, instead of theMapspecified in theTableinterface.
-