K
- type for keySK
- type for sub-keySV
- type for value elementspublic class MapOfMaps<K,SK,SV>
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private java.util.Map<K,java.util.Map<SK,SV>> |
_map |
Constructor and Description |
---|
MapOfMaps() |
Modifier and Type | Method and Description |
---|---|
int |
calcValueSize()
Returns cumulative size of all the values for all the keys in this map; note that this is
caclulated at every invocation.
|
boolean |
containsKey(K key) |
protected java.util.Map<SK,SV> |
createSubMap() |
boolean |
isEmpty() |
java.util.Set<K> |
keys() |
void |
putValue(K key,
SK subkey,
SV value) |
int |
size()
Returns size of this map (i.e., number of keys).
|
java.util.Map<SK,SV> |
subMap(K key)
Returns sub-values for
key if found, empty map otherwise. |
java.lang.String |
toString() |
java.util.List<java.lang.String> |
toStringLines() |
SV |
value(K key,
SK subkey)
"Descends"
key - subkey ; returns null if no such value. |
public java.util.Map<SK,SV> subMap(K key)
key
if found, empty map otherwise.public int size()
public int calcValueSize()
public java.util.Set<K> keys()
public boolean isEmpty()
public boolean containsKey(K key)
public java.util.List<java.lang.String> toStringLines()
public java.lang.String toString()
toString
in class java.lang.Object
Copyright 2009-2015 Tatjana (Tanja) Kostic