public class HashMultiMap<K,V> extends AbstractMultiMap<K,V>
| Modifier and Type | Field and Description |
|---|---|
protected float |
loadFactor |
protected Map<K,Set<V>> |
m |
| Constructor and Description |
|---|
HashMultiMap() |
HashMultiMap(int initialSize) |
HashMultiMap(int initialSize,
float loadFactor) |
HashMultiMap(Map<K,Set<V>> m) |
HashMultiMap(MultiMap<K,V> m) |
| Modifier and Type | Method and Description |
|---|---|
void |
clear() |
boolean |
containsKey(Object key) |
boolean |
containsValue(V value) |
protected Map<K,Set<V>> |
createMap() |
protected Map<K,Set<V>> |
createMap(int initialSize) |
boolean |
equals(Object o) |
Set<V> |
get(K o) |
int |
hashCode() |
Set<K> |
keySet() |
protected Set<V> |
newSet() |
int |
numKeys() |
boolean |
put(K key,
V value) |
boolean |
putAll(K key,
Set<V> values) |
boolean |
remove(K key) |
boolean |
remove(K key,
V value) |
boolean |
removeAll(K key,
Set<V> values) |
int |
size()
Gets the number of keys in this MultiMap
|
String |
toString() |
Set<V> |
values() |
contains, isEmpty, iterator, putAll, putAll, putMapclone, finalize, getClass, notify, notifyAll, wait, wait, waitforEach, spliteratorpublic HashMultiMap()
public HashMultiMap(int initialSize)
public HashMultiMap(int initialSize,
float loadFactor)
public int numKeys()
public boolean containsKey(Object key)
public boolean containsValue(V value)
public boolean remove(K key)
public boolean equals(Object o)
public int hashCode()
public int size()
MultiMappublic void clear()
Copyright © 2020 Soot OSS. All rights reserved.