Updates the key-value mapping in this fact. @return if the update changes this fact.
(K key, V value)
| 66 | * @return if the update changes this fact. |
| 67 | */ |
| 68 | public boolean update(K key, V value) { |
| 69 | return !Objects.equals(map.put(key, value), value); |
| 70 | } |
| 71 | |
| 72 | /** |
| 73 | * Removes the key-value mapping for given key. |