Package com.google.common.collect
Class StandardRowSortedTable<R,C,V>
java.lang.Object
com.google.common.collect.AbstractTable<R,C,V>
com.google.common.collect.StandardTable<R,C,V>
com.google.common.collect.StandardRowSortedTable<R,C,V>
- All Implemented Interfaces:
RowSortedTable<R,,C, V> Table<R,,C, V> Serializable
- Direct Known Subclasses:
TreeBasedTable
Implementation of
Table whose iteration ordering across row keys is sorted by their
natural ordering or by a supplied comparator. Note that iterations across the columns keys for a
single row key may or may not be ordered, depending on the implementation. When rows and columns
are both sorted, it's easier to use the TreeBasedTable subclass.
The rowKeySet() method returns a SortedSet and the rowMap() method
returns a SortedMap, instead of the Set and Map specified by the Table interface.
Null keys and values are not supported.
See the StandardTable superclass for more information about the behavior of this
class.
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class com.google.common.collect.StandardTable
StandardTable.Row, StandardTable.RowMapNested classes/interfaces inherited from class com.google.common.collect.AbstractTable
AbstractTable.CellSet, AbstractTable.ValuesNested classes/interfaces inherited from interface com.google.common.collect.Table
Table.Cell<R,C, V> -
Field Summary
FieldsFields inherited from class com.google.common.collect.StandardTable
backingMap, factory -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns a set of row keys that have one or more values in the table.rowMap()Returns a view that associates each row key with the corresponding map from column keys to values.Methods inherited from class com.google.common.collect.StandardTable
cellIterator, cellSet, cellSpliterator, clear, column, columnKeySet, columnMap, contains, containsColumn, containsRow, containsValue, createColumnKeyIterator, get, isEmpty, put, remove, row, size, valuesMethods inherited from class com.google.common.collect.AbstractTable
createCellSet, createValues, equals, hashCode, putAll, toString, valuesIterator, valuesSpliteratorMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods 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
-
Field Details
-
serialVersionUID
private static final long serialVersionUID- See Also:
-
-
Constructor Details
-
StandardRowSortedTable
-
-
Method Details
-
sortedBackingMap
-
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. -
createRowMap
- Overrides:
createRowMapin classStandardTable<R,C, V>
-