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

Method removeColumn

output/java_guava/1.4.17/StandardTable.java:172–187  ·  view source on GitHub ↗
(Object column)

Source from the content-addressed store, hash-verified

170 }
171
172 @CanIgnoreReturnValue
173 private Map<R, V> removeColumn(Object column) {
174 Map<R, V> output = new LinkedHashMap<R, V>();
175 Iterator<Entry<R, Map<C, V>>> iterator = backingMap.entrySet().iterator();
176 while (iterator.hasNext()) {
177 Entry<R, Map<C, V>> entry = iterator.next();
178 V value = entry.getValue().remove(column);
179 if (value != null) {
180 output.put(entry.getKey(), value);
181 if (entry.getValue().isEmpty()) {
182 iterator.remove();
183 }
184 }
185 }
186 return output;
187 }
188
189 private boolean containsMapping(Object rowKey, Object columnKey, Object value) {
190 return value != null && value.equals(get(rowKey, columnKey));

Callers 6

removeMethod · 0.45
removeMethod · 0.45
retainAllMethod · 0.45
removeMethod · 0.45
removeAllMethod · 0.45
retainAllMethod · 0.45

Calls 9

iteratorMethod · 0.65
entrySetMethod · 0.65
nextMethod · 0.65
removeMethod · 0.65
getValueMethod · 0.65
putMethod · 0.65
getKeyMethod · 0.65
isEmptyMethod · 0.65
hasNextMethod · 0.45

Tested by

no test coverage detected