|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectca.infoway.messagebuilder.j5goodies.MapOfMaps<K1,K2,V>
K1
- - the type of the outer map key.K2
- - the type of the inner map key.V
- - the type of the map value.public class MapOfMaps<K1,K2,V>
This class provides simple semantics for the common situation where you want to have a map that contains other maps.
Nested Class Summary |
---|
Nested classes/interfaces inherited from interface java.util.Map |
---|
Map.Entry<K,V> |
Constructor Summary | |
---|---|
MapOfMaps()
|
Method Summary | |
---|---|
void |
clear()
|
boolean |
containsKey(K1 key1,
K2 key2)
Determine if the map contains a compound key. |
boolean |
containsKey(Object key)
|
boolean |
containsValue(Object value)
|
Set<Map.Entry<K1,Map<K2,V>>> |
entrySet()
|
V |
get(K1 key1,
K2 key2)
Get the value. |
Map<K2,V> |
get(Object key)
|
boolean |
isEmpty()
|
Set<K1> |
keySet()
|
void |
put(K1 key1,
K2 key2,
V value)
Put the value. |
Map<K2,V> |
put(K1 key,
Map<K2,V> value)
|
void |
putAll(Map<? extends K1,? extends Map<K2,V>> t)
|
Map<K2,V> |
remove(Object key)
|
int |
size()
|
String |
toString()
|
Collection<Map<K2,V>> |
values()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface java.util.Map |
---|
equals, hashCode |
Constructor Detail |
---|
public MapOfMaps()
Method Detail |
---|
public void clear()
clear
in interface Map<K1,Map<K2,V>>
public boolean containsKey(Object key)
containsKey
in interface Map<K1,Map<K2,V>>
public boolean containsValue(Object value)
containsValue
in interface Map<K1,Map<K2,V>>
public Set<Map.Entry<K1,Map<K2,V>>> entrySet()
entrySet
in interface Map<K1,Map<K2,V>>
public Map<K2,V> get(Object key)
get
in interface Map<K1,Map<K2,V>>
public boolean isEmpty()
isEmpty
in interface Map<K1,Map<K2,V>>
public Set<K1> keySet()
keySet
in interface Map<K1,Map<K2,V>>
public Map<K2,V> put(K1 key, Map<K2,V> value)
put
in interface Map<K1,Map<K2,V>>
public void putAll(Map<? extends K1,? extends Map<K2,V>> t)
putAll
in interface Map<K1,Map<K2,V>>
public Map<K2,V> remove(Object key)
remove
in interface Map<K1,Map<K2,V>>
public int size()
size
in interface Map<K1,Map<K2,V>>
public Collection<Map<K2,V>> values()
values
in interface Map<K1,Map<K2,V>>
public void put(K1 key1, K2 key2, V value)
Put the value.
key1
- - the key of the outer map.key2
- - the key of the innter map.value
- - the new valuepublic boolean containsKey(K1 key1, K2 key2)
Determine if the map contains a compound key.
key1
- - the key of the outer map.key2
- - the key of the innter map.
public V get(K1 key1, K2 key2)
Get the value.
key1
- - the key of the outer map.key2
- - the key of the innter map.
public String toString()
toString
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |