(Object column)
| 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)); |
no test coverage detected