Checks if the MultiMap contains the specified value for the given key. @param key the key whose associated values are to be checked @param value the value to look for @return true if the value is associated with the key, false otherwise
(K key, V value)
| 78 | * @return {@code true} if the value is associated with the key, {@code false} otherwise |
| 79 | */ |
| 80 | public boolean contains(K key, V value) { |
| 81 | List<V> values = map.get(key); |
| 82 | return values != null && values.contains(value); |
| 83 | } |
| 84 | |
| 85 | /** |
| 86 | * Checks if the MultiMap contains the given key. |
no test coverage detected