public class MultiMap<K,V>
extends java.lang.Object
implements java.io.Serializable
createLinked()
, createSet()
, createSmart()
, #create(TObjectHashingStrategy)
instead of override.BidirectionalMultiMap
,
ConcurrentMultiMap
,
Serialized FormModifier and Type | Field and Description |
---|---|
static MultiMap<?,?> |
EMPTY |
protected java.util.Map<K,java.util.Collection<V>> |
myMap |
Constructor and Description |
---|
MultiMap() |
MultiMap(int initialCapacity,
float loadFactor) |
MultiMap(MultiMap<? extends K,? extends V> toCopy) |
Modifier and Type | Method and Description |
---|---|
void |
clear() |
boolean |
containsKey(K key) |
boolean |
containsScalarValue(V value) |
MultiMap<K,V> |
copy() |
static <K,V> MultiMap<K,V> |
create()
Null keys supported.
|
static <K,V> MultiMap<K,V> |
create(<any> strategy) |
static <K,V> MultiMap<K,V> |
create(int initialCapacity,
float loadFactor) |
protected java.util.Collection<V> |
createCollection() |
static <K,V> MultiMap<K,V> |
createConcurrentSet() |
protected java.util.Collection<V> |
createEmptyCollection() |
static <K,V> MultiMap<K,V> |
createLinked() |
static <K,V> MultiMap<K,V> |
createLinkedSet() |
protected java.util.Map<K,java.util.Collection<V>> |
createMap() |
protected java.util.Map<K,java.util.Collection<V>> |
createMap(int initialCapacity,
float loadFactor) |
static <K,V> MultiMap<K,V> |
createObjectLinkedOpenHashSet() |
static <K,V> MultiMap<K,V> |
createOrderedSet() |
static <K,V> MultiMap<K,V> |
createSet() |
static <K,V> MultiMap<K,V> |
createSet(<any> strategy) |
static <K,V> MultiMap<K,V> |
createSmart() |
static <K,V> MultiMap<K,V> |
createWeakKey() |
static <K,V> MultiMap<K,V> |
empty() |
static <K,V> MultiMap<K,V> |
emptyInstance() |
java.util.Set<java.util.Map.Entry<K,java.util.Collection<V>>> |
entrySet() |
boolean |
equals(java.lang.Object o) |
java.util.Collection<V> |
get(K key) |
java.util.Collection<V> |
getModifiable(K key) |
int |
hashCode() |
boolean |
isEmpty() |
java.util.Set<K> |
keySet() |
void |
put(K key,
java.util.Collection<V> values) |
void |
putAllValues(java.util.Map<? extends K,? extends V> from) |
void |
putAllValues(MultiMap<? extends K,? extends V> from) |
void |
putValue(K key,
V value) |
void |
putValues(K key,
java.util.Collection<? extends V> values) |
java.util.Collection<V> |
remove(K key) |
boolean |
remove(K key,
V value) |
void |
removeValue(K key,
V value)
Deprecated.
use
remove(Object, Object) instead |
int |
size() |
java.lang.String |
toString() |
java.util.Collection<V> |
values() |
public static final MultiMap<?,?> EMPTY
public MultiMap()
public MultiMap(int initialCapacity, float loadFactor)
protected java.util.Map<K,java.util.Collection<V>> createMap(int initialCapacity, float loadFactor)
protected java.util.Collection<V> createCollection()
protected java.util.Collection<V> createEmptyCollection()
public boolean isEmpty()
public boolean containsKey(K key)
public boolean containsScalarValue(V value)
public java.util.Set<K> keySet()
public int size()
@Deprecated public void removeValue(K key, V value)
remove(Object, Object)
insteadpublic java.util.Collection<V> values()
public void clear()
public static <K,V> MultiMap<K,V> emptyInstance()
public static <K,V> MultiMap<K,V> create()
public static <K,V> MultiMap<K,V> create(<any> strategy)
public static <K,V> MultiMap<K,V> createLinked()
public static <K,V> MultiMap<K,V> createLinkedSet()
public static <K,V> MultiMap<K,V> createOrderedSet()
public static <K,V> MultiMap<K,V> createObjectLinkedOpenHashSet()
public static <K,V> MultiMap<K,V> createSmart()
public static <K,V> MultiMap<K,V> createConcurrentSet()
public static <K,V> MultiMap<K,V> createSet()
public static <K,V> MultiMap<K,V> createSet(<any> strategy)
public static <K,V> MultiMap<K,V> createWeakKey()
public static <K,V> MultiMap<K,V> create(int initialCapacity, float loadFactor)
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object
public static <K,V> MultiMap<K,V> empty()