![JAR search and dependency download from the Maven repository](/logo.png)
javadoc.com.google.common.collect.RowSortedTable.html Maven / Gradle / Ivy
The newest version!
RowSortedTable (Guava: Google Core Libraries for Java 11.0.1 API)
Overview
Package
Class
Use
Tree
Deprecated
Index
Help
PREV CLASS
NEXT CLASS
FRAMES
NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD
DETAIL: FIELD | CONSTR | METHOD
com.google.common.collect
Interface RowSortedTable<R,C,V>
- All Superinterfaces:
- Table<R,C,V>
- All Known Implementing Classes:
- TreeBasedTable
@GwtCompatible
@Beta
public interface RowSortedTable<R,C,V>
- 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 com.google.common.collect.Table |
---|
Table.Cell<R,C,V> |
Method Summary | |
---|---|
SortedSet<R> |
rowKeySet()
Returns a set of row keys that have one or more values in the table. |
SortedMap<R,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
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 theSet
specified in theTable
interface.- Returns:
- set of row keys
rowMap
SortedMap<R,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 support
put()
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 theMap
specified in theTable
interface.- Returns:
- a map view from each row key to a secondary map from column keys to values
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Copyright © 2010-2012. All Rights Reserved.
© 2015 - 2025 Weber Informatics LLC | Privacy Policy