K - the type of the keys in this mapV - the type of the values in this mappublic interface SetValuedMap<K,V> extends MultiValuedMap<K,V>
A SetValuedMap is a Map with slightly different semantics:
Set at that key.Set, holding all the values put to that key.| Modifier and Type | Method and Description |
|---|---|
java.util.Set<V> |
get(K key)
Gets the set of values associated with the specified key.
|
java.util.Set<V> |
remove(java.lang.Object key)
Removes all values associated with the specified key.
|
asMap, clear, containsKey, containsMapping, containsValue, entries, isEmpty, keys, keySet, mapIterator, put, putAll, putAll, putAll, removeMapping, size, valuesjava.util.Set<V> get(K key)
Implementations typically return an empty Set if no values
have been mapped to the key.
get in interface MultiValuedMap<K,V>key - the key to retrieveSet of values, implementations should return an
empty Set for no mappingjava.lang.NullPointerException - if the key is null and null keys are invalidjava.util.Set<V> remove(java.lang.Object key)
The returned set may be modifiable, but updates will not be propagated to this set-valued map. In case no mapping was stored for the specified key, an empty, unmodifiable set will be returned.
remove in interface MultiValuedMap<K,V>key - the key to remove values fromSet of values removed, implementations should
return null for no mapping found, but may return an empty collectionjava.lang.UnsupportedOperationException - if the map is unmodifiablejava.lang.NullPointerException - if the key is null and null keys are invalidCopyright © 2010 - 2023 Adobe. All Rights Reserved