Returns a list of values associated with the specified key. If the key does not exist, an empty list is returned. @param key the key whose associated values are to be returned @return a list of values associated with the key, or an empty list if the key does not exist
(K key)
| 38 | * @return a list of values associated with the key, or an empty list if the key does not exist |
| 39 | */ |
| 40 | public List<V> get(K key) { |
| 41 | return map.getOrDefault(key, Collections.emptyList()); |
| 42 | } |
| 43 | |
| 44 | /** |
| 45 | * Removes a specific value associated with the specified key. |
no outgoing calls
no test coverage detected