public class ThreeDimensionalCollectionValuedMap<K1,K2,K3,V>
extends java.lang.Object
implements java.io.Serializable
Collection
s of Object values.
Important methods are the add(K1, K2, K3, V)
for adding a value
to/from the Collection associated with the key, and the get(K1, K2, K3)
method for
getting the Collection associated with a key.
The class is quite general, because on construction, it is possible to pass a MapFactory
which will be used to create the underlying map and a CollectionFactory
which will
be used to create the Collections. Thus this class can be configured to act like a "HashSetValuedMap"
or a "ListValuedMap", or even a "HashSetValuedIdentityHashMap". The possibilities are endless!Constructor and Description |
---|
ThreeDimensionalCollectionValuedMap() |
Modifier and Type | Method and Description |
---|---|
void |
add(K1 key1,
K2 key2,
K3 key3,
V value)
Adds the value to the Collection mapped to by the key.
|
void |
clear() |
boolean |
containsKey(K1 key) |
java.util.Collection<V> |
get(K1 key1,
K2 key2,
K3 key3) |
TwoDimensionalCollectionValuedMap<K2,K3,V> |
getTwoDimensionalCollectionValuedMap(K1 key1) |
java.util.Set<K1> |
keySet() |
java.lang.String |
toString() |
public java.lang.String toString()
toString
in class java.lang.Object
public TwoDimensionalCollectionValuedMap<K2,K3,V> getTwoDimensionalCollectionValuedMap(K1 key1)
public void add(K1 key1, K2 key2, K3 key3, V value)
public void clear()
public java.util.Set<K1> keySet()
public boolean containsKey(K1 key)