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

Method column

output/java_guava/1.4.16/ArrayTable.java:604–609  ·  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

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;

Callers

nothing calls this directly

Calls 3

ofMethod · 0.95
getMethod · 0.65
checkNotNullMethod · 0.45

Tested by

no test coverage detected