Returns a view of all mappings that have the given row key. If the row key isn't in #rowKeySet(), an empty immutable map is returned. Otherwise, for each column key in #columnKeySet(), the returned map associates the column key with the corresponding value in the table. Changes t
(R rowKey)
| 673 | * @return the corresponding map from column keys to values |
| 674 | */ |
| 675 | @Override |
| 676 | public Map<C, V> row(R rowKey) { |
| 677 | checkNotNull(rowKey); |
| 678 | Integer rowIndex = rowKeyToIndex.get(rowKey); |
| 679 | return (rowIndex == null) ? ImmutableMap.<C, V>of() : new Row(rowIndex); |
| 680 | } |
| 681 | |
| 682 | private class Row extends ArrayMap<C, V> { |
| 683 | final int rowIndex; |
nothing calls this directly
no test coverage detected