Top Description Methods
com.google.common.collect

public Interface RowSortedTable<R extends @Nullable Object, C extends @Nullable Object, V extends @Nullable Object>

extends Table<R extends @Nullable Object, C extends @Nullable Object, V extends @Nullable Object>
Known Direct Implementers
com.google.common.collect.StandardRowSortedTable, com.google.common.collect.Tables.UnmodifiableRowSortedMap
Annotations
@GwtCompatible
@ElementTypesAreNonnullByDefault
Imports
com.google.common.annotations.GwtCompatible, java.util.Map, .Set, .SortedMap, .SortedSet, org.checkerframework.checker.nullness.qual.Nullable

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.

Author
Warren Dukes
Since
8.0

Method Summary

Modifier and TypeMethod and Description
public SortedSet<R>
rowKeySet()

Redeclares com.google.common.collect.Table.rowKeySet.

Returns a set of row keys that have one or more values in the table.
public SortedMap<R, Map<C, V>>
rowMap()

Redeclares com.google.common.collect.Table.rowMap.

Returns a view that associates each row key with the corresponding map from column keys to values.
Inherited from com.google.common.collect.Table:
cellSetclearcolumncolumnKeySetcolumnMapcontainscontainsColumncontainsRowcontainsValueequalsgethashCodeisEmptyputputAllremoverowsizevalues

Method Detail

rowKeySetback to summary
public SortedSet<R> rowKeySet()

Redeclares com.google.common.collect.Table.rowKeySet.

Doc from com.google.common.collect.Table.rowKeySet.

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.

This method returns a SortedSet, instead of the Set specified in the Table interface.

Returns:SortedSet<R>

set of row keys

Annotations
@Override
rowMapback to summary
public SortedMap<R, Map<C, V>> rowMap()

Redeclares com.google.common.collect.Table.rowMap.

Doc from com.google.common.collect.Table.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 support put() or putAll(), or setValue() on its entries.

In contrast, the maps returned by rowMap().get() have the same behavior as those returned by row. Those maps may support setValue(), put(), and putAll().

This method returns a SortedMap, instead of the Map specified in the Table interface.

Returns:SortedMap<R, Map<C, V>>

a map view from each row key to a secondary map from column keys to values

Annotations
@Override