@GwtCompatible class StandardRowSortedTable<R,C,V> extends StandardTable<R,C,V> implements RowSortedTable<R,C,V>
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.
| Modifier and Type | Class and Description |
|---|---|
private class |
StandardRowSortedTable.RowSortedMap |
StandardTable.Row, StandardTable.RowMapAbstractTable.CellSet, AbstractTable.ValuesTable.Cell<R,C,V>| Modifier and Type | Field and Description |
|---|---|
private static long |
serialVersionUID |
backingMap, factory| Constructor and Description |
|---|
StandardRowSortedTable(java.util.SortedMap<R,java.util.Map<C,V>> backingMap,
Supplier<? extends java.util.Map<C,V>> factory) |
| Modifier and Type | Method and Description |
|---|---|
(package private) java.util.SortedMap<R,java.util.Map<C,V>> |
createRowMap() |
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.
|
private java.util.SortedMap<R,java.util.Map<C,V>> |
sortedBackingMap() |
cellIterator, cellSet, clear, column, columnKeySet, columnMap, contains, containsColumn, containsRow, containsValue, createColumnKeyIterator, get, isEmpty, put, remove, row, size, valuescreateCellSet, createValues, equals, hashCode, putAll, toString, valuesIteratorclone, finalize, getClass, notify, notifyAll, wait, wait, waitcellSet, clear, column, columnKeySet, columnMap, contains, containsColumn, containsRow, containsValue, equals, get, hashCode, isEmpty, put, putAll, remove, row, size, valuesprivate static final long serialVersionUID
public java.util.SortedSet<R> rowKeySet()
This method returns a SortedSet, instead of the Set
specified in the Table interface.
public java.util.SortedMap<R,java.util.Map<C,V>> rowMap()
put() or putAll(), or
setValue() on its entries.
In contrast, the maps returned by rowMap().get() have the same
behavior as those returned by Table.row(R). Those maps may support setValue(), put(), and putAll().
This method returns a SortedMap, instead of the Map
specified in the Table interface.
java.util.SortedMap<R,java.util.Map<C,V>> createRowMap()
createRowMap in class StandardTable<R,C,V>