Package com.google.common.collect
Interface RowSortedTable<R extends @Nullable java.lang.Object,C extends @Nullable java.lang.Object,V extends @Nullable java.lang.Object>
-
- All Superinterfaces:
Table<R,C,V>
- All Known Implementing Classes:
TreeBasedTable
@GwtCompatible public interface RowSortedTable<R extends @Nullable java.lang.Object,C extends @Nullable java.lang.Object,V extends @Nullable java.lang.Object> extends Table<R,C,V>
Interface that extendsTableand whose rows are sorted.The
rowKeySet()method returns aSortedSetand therowMap()method returns aSortedMap, instead of theSetandMapspecified by theTableinterface.- Since:
- 8.0
- Author:
- Warren Dukes
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.util.SortedSet<R>rowKeySet()Returns a set of row keys that have one or more values in the table.java.util.SortedMap<R,java.util.Map<C,V>>rowMap()Returns a view that associates each row key with the corresponding map from column keys to values.-
Methods inherited from interface com.google.common.collect.Table
cellSet, clear, column, columnKeySet, columnMap, contains, containsColumn, containsRow, containsValue, equals, get, hashCode, isEmpty, put, putAll, remove, row, size, values
-
-
-
-
Method Detail
-
rowKeySet
java.util.SortedSet<R> 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 theSetspecified in theTableinterface.
-
rowMap
java.util.SortedMap<R,java.util.Map<C,V>> 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.
-
-