Returns a view of all mappings that have the given column key. If the column key isn't in #columnKeySet(), an empty immutable map is returned. Otherwise, for each row key in #rowKeySet(), the returned map associates the row key with the corresponding value in the table. Changes t
(C columnKey)
| 583 | * @return the corresponding map from row keys to values |
| 584 | */ |
| 585 | @Override |
| 586 | public Map<R, V> column(C columnKey) { |
| 587 | checkNotNull(columnKey); |
| 588 | Integer columnIndex = columnKeyToIndex.get(columnKey); |
| 589 | return (columnIndex == null) ? ImmutableMap.<R, V>of() : new Column(columnIndex); |
| 590 | } |
| 591 | |
| 592 | private class Column extends ArrayMap<R, V> { |
| 593 | final int columnIndex; |
nothing calls this directly
no test coverage detected