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)
| 602 | */ |
| 603 | |
| 604 | @Override |
| 605 | public Map<R, V> column(C columnKey) { |
| 606 | checkNotNull(columnKey); |
| 607 | Integer columnIndex = columnKeyToIndex.get(columnKey); |
| 608 | return (columnIndex == null) ? ImmutableMap.<R, V>of() : new Column(columnIndex); |
| 609 | } |
| 610 | |
| 611 | private class Column extends ArrayMap<R, V> { |
| 612 | final int columnIndex; |
nothing calls this directly
no test coverage detected