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

Method contains

output/java_guava/1.4.17/AbstractTable.java:125–134  ·  view source on GitHub ↗
(Object o)

Source from the content-addressed store, hash-verified

123 @WeakOuter
124 class CellSet extends AbstractSet<Cell<R, C, V>> {
125 @Override
126 public boolean contains(Object o) {
127 if (o instanceof Cell) {
128 Cell<?, ?, ?> cell = (Cell<?, ?, ?>) o;
129 Map<C, V> row = Maps.safeGet(rowMap(), cell.getRowKey());
130 return row != null
131&& Collections2.safeContains(row.entrySet(), Maps.immutableEntry(cell.getColumnKey(), cell.getValue()));
132 }
133 return false;
134 }
135
136 @Override
137 public boolean remove(@Nullable Object o) {

Callers

nothing calls this directly

Calls 8

safeGetMethod · 0.95
safeContainsMethod · 0.95
immutableEntryMethod · 0.95
rowMapMethod · 0.65
getRowKeyMethod · 0.65
entrySetMethod · 0.65
getColumnKeyMethod · 0.65
getValueMethod · 0.65

Tested by

no test coverage detected