Modifier and Type | Field and Description |
---|---|
protected boolean |
create |
protected Map<K,Set<V>> |
map |
Constructor and Description |
---|
HashSetMultiMap() |
HashSetMultiMap(boolean create) |
Modifier and Type | Method and Description |
---|---|
void |
clear() |
boolean |
containsKey(K key) |
protected Set<V> |
createSet() |
protected Set<V> |
emptySet() |
Set<V> |
get(K key) |
boolean |
isEmpty() |
Set<K> |
keySet() |
static <K,V> HashSetMultiMap<K,V> |
make() |
boolean |
put(K key,
V val) |
boolean |
putAll(K key,
Collection<? extends V> vals) |
boolean |
remove(K key,
V val) |
Set<V> |
removeAll(K key) |
int |
size() |
String |
toString() |
public HashSetMultiMap()
public HashSetMultiMap(boolean create)
public static <K,V> HashSetMultiMap<K,V> make()
protected Set<V> emptySet()
public boolean containsKey(K key)
containsKey
in interface MultiMap<K,V>
public String toString()
public boolean putAll(K key, Collection<? extends V> vals)