public class MostlySingularMultiMap<K,V>
extends java.lang.Object
implements java.io.Serializable
Modifier and Type | Class and Description |
---|---|
protected static class |
MostlySingularMultiMap.ValueList<V> |
Modifier and Type | Field and Description |
---|---|
protected java.util.Map<K,java.lang.Object> |
myMap |
Constructor and Description |
---|
MostlySingularMultiMap() |
Modifier and Type | Method and Description |
---|---|
void |
add(K key,
V value) |
void |
addAll(MostlySingularMultiMap<? extends K,? extends V> other) |
void |
clear() |
void |
compact() |
boolean |
containsKey(K key) |
protected java.util.Map<K,java.lang.Object> |
createMap() |
static <K,V> MostlySingularMultiMap<K,V> |
emptyMap() |
java.lang.Iterable<V> |
get(K name) |
boolean |
isEmpty() |
java.util.Set<K> |
keySet() |
static <K,V> MostlySingularMultiMap<K,V> |
newMap() |
boolean |
processAllValues(Processor<? super V> p) |
boolean |
processForKey(K key,
Processor<? super V> p) |
protected java.util.List<V> |
rawValueToCollection(java.lang.Object value) |
boolean |
remove(K key,
V value) |
boolean |
removeAllValues(K key) |
int |
size() |
java.lang.String |
toString() |
int |
valuesForKey(K key) |
protected final java.util.Map<K,java.lang.Object> myMap
protected java.util.Map<K,java.lang.Object> createMap()
public boolean removeAllValues(K key)
public java.util.Set<K> keySet()
public boolean isEmpty()
public int size()
public boolean containsKey(K key)
public int valuesForKey(K key)
protected java.util.List<V> rawValueToCollection(java.lang.Object value)
public void compact()
public java.lang.String toString()
toString
in class java.lang.Object
public void clear()
public static <K,V> MostlySingularMultiMap<K,V> emptyMap()
public static <K,V> MostlySingularMultiMap<K,V> newMap()
public void addAll(MostlySingularMultiMap<? extends K,? extends V> other)