Modifier and Type | Field and Description |
---|---|
protected boolean |
create |
static ArraySetMultiMap |
EMPTY |
protected Map<K,Set<V>> |
map |
Constructor and Description |
---|
ArraySetMultiMap() |
ArraySetMultiMap(boolean create) |
Modifier and Type | Method and Description |
---|---|
void |
clear() |
boolean |
containsKey(K key) |
protected Set<V> |
createSet() |
protected Set<V> |
emptySet() |
ArraySet<V> |
get(K key) |
boolean |
isEmpty() |
Set<K> |
keySet() |
static <K,V> ArraySetMultiMap<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 static final ArraySetMultiMap EMPTY
protected final boolean create
public ArraySetMultiMap()
public ArraySetMultiMap(boolean create)
public static <K,V> ArraySetMultiMap<K,V> make()
public boolean containsKey(K key)
containsKey
in interface MultiMap<K,V>
public String toString()
public boolean putAll(K key, Collection<? extends V> vals)