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 |
| Modifier and Type | Field and Description |
|---|---|
| private static final long |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| pack-priv SortedMap | |
| public SortedSet | rowKeySet()
Overrides com. Implements com. |
| public SortedMap | rowMap()
Overrides com. Implements com. |
| private SortedMap |
| serialVersionUID | back to summary |
|---|---|
| private static final long serialVersionUID Hides com. | |
| StandardRowSortedTable | back to summary |
|---|---|
| pack-priv StandardRowSortedTable(SortedMap<R, Map<C, V>> backingMap, Supplier<? extends Map<C, V>> factory) | |
| createRowMap | back to summary |
|---|---|
| pack-priv SortedMap Overrides com.
| |
| rowKeySet | back to summary |
|---|---|
| public SortedSet Overrides com. Implements com. Doc from com. 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 This method returns a
| |
| rowMap | back to summary |
|---|---|
| public SortedMap Overrides com. Implements com. Doc from com. 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
In contrast, the maps returned by This method returns a This method returns a
| |
| sortedBackingMap | back to summary |
|---|---|
| private SortedMap | |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public Comparator | comparator()
Implements java. null if this map uses the natural ordering of its keys.
|
| pack-priv SortedSet | |
| public R | firstKey()
Implements java. |
| public SortedMap | headMap(R
high endpoint (exclusive) of the keys in the returned map toKey)Implements java. toKey.
|
| public SortedSet | keySet()
Overrides com. Implements java. Set view of the keys contained in this map.
|
| public R | lastKey()
Implements java. |
| public SortedMap | subMap(R
low endpoint (inclusive) of the keys in the returned map fromKey, R high endpoint (exclusive) of the keys in the returned map toKey)Implements java. fromKey, inclusive, to toKey, exclusive.
|
| public SortedMap | tailMap(R
low endpoint (inclusive) of the keys in the returned map fromKey)Implements java. fromKey.
|
| RowSortedMap | back to summary |
|---|---|
| private RowSortedMap() | |
| comparator | back to summary |
|---|---|
| public Comparator Implements java. Doc from java. Returns the comparator used to order the keys in this map, or
| |
| createKeySet | back to summary |
|---|---|
| pack-priv SortedSet Overrides com.
| |
| firstKey | back to summary |
|---|---|
| public R firstKey() Implements java. Doc from java. Returns the first (lowest) key currently in this map.
| |
| headMap | back to summary |
|---|---|
| public SortedMap Implements java. Doc from java. Returns a view of the portion of this map whose keys are
strictly less than The returned map will throw an | |
| keySet | back to summary |
|---|---|
| public SortedSet Overrides com. Implements java. Doc from java. Returns a | |
| lastKey | back to summary |
|---|---|
| public R lastKey() Implements java. Doc from java. Returns the last (highest) key currently in this map.
| |
| subMap | back to summary |
|---|---|
| public SortedMap Implements java. Doc from java. Returns a view of the portion of this map whose keys range from
The returned map will throw an | |
| tailMap | back to summary |
|---|---|
| public SortedMap Implements java. Doc from java. Returns a view of the portion of this map whose keys are
greater than or equal to The returned map will throw an | |