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,Collection<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,
Collection<V> values) |
boolean |
remove(K key) |
boolean |
remove(K key,
V value) |
boolean |
removeAll(K key,
Collection<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 HashMultiMap(Map<K,Collection<V>> m)
public int numKeys()
public boolean containsKey(Object key)
public boolean containsValue(V value)
public boolean putAll(K key, Collection<V> values)
public boolean remove(K key)
public boolean removeAll(K key, Collection<V> values)
public int size()
MultiMappublic void clear()
Copyright © 2024 Soot OSS. All rights reserved.