K - the type of the keys in this mapV - the type of the values in this mappublic abstract class AbstractSetValuedMap<K,V> extends AbstractMultiValuedMap<K,V> implements SetValuedMap<K,V>
SetValuedMap interface to simplify the
creation of subclass implementations.
Subclasses specify a Map implementation to use as the internal storage and the Set implementation to use as values.
| 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, equals, hashCode, isEmpty, keys, keySet, mapIterator, put, putAll, putAll, putAll, removeMapping, size, toString, valuesasMap, clear, containsKey, containsMapping, containsValue, entries, isEmpty, keys, keySet, mapIterator, put, putAll, putAll, putAll, removeMapping, size, valuespublic java.util.Set<V> get(K key)
get in interface MultiValuedMap<K,V>get in interface SetValuedMap<K,V>get in class AbstractMultiValuedMap<K,V>key - the key to retrieveSet of values, will return an empty
Set for no mappingpublic java.util.Set<V> remove(java.lang.Object key)
A subsequent get(Object) would return an empty set.
remove in interface MultiValuedMap<K,V>remove in interface SetValuedMap<K,V>remove in class AbstractMultiValuedMap<K,V>key - the key to remove values fromSet of values removed, will return an empty,
unmodifiable set for no mapping found.Copyright © 2010 - 2023 Adobe. All Rights Reserved