MCPcopy Create free account
hub / github.com/antlr/codebuff / column

Method column

corpus/java/training/guava/collect/ArrayTable.java:585–590  ·  view source on GitHub ↗

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)

Source from the content-addressed store, hash-verified

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;

Callers

nothing calls this directly

Calls 3

ofMethod · 0.95
getMethod · 0.65
checkNotNullMethod · 0.45

Tested by

no test coverage detected