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

Method row

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

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)

Source from the content-addressed store, hash-verified

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;

Callers

nothing calls this directly

Calls 3

ofMethod · 0.95
getMethod · 0.65
checkNotNullMethod · 0.45

Tested by

no test coverage detected