public class ThreeDHashMap<K1,K2,K3,V> extends Object
| Constructor and Description | 
|---|
| ThreeDHashMap() | 
| Modifier and Type | Method and Description | 
|---|---|
| boolean | containsKey(K1 firstKey,
           K2 secondKey)Existence check of a value (or null) mapped to the keys. | 
| boolean | containsKey(K1 firstKey,
           K2 secondKey,
           K3 thirdKey)Existence check of a value (or null) mapped to the keys. | 
| HashMap<K2,HashMap<K3,V>> | get(K1 firstKey)Fetch the outermost Hashmap. | 
| HashMap<K3,V> | get(K1 firstKey,
   K2 secondKey)Fetch the innermost Hashmap. | 
| V | get(K1 firstKey,
   K2 secondKey,
   K3 thirdKey)Fetch a value from the Hashmap. | 
| TwoDHashMap<K2,K3,V> | getAs2d(K1 firstKey)Fetch the outermost Hashmap as a TwoDHashMap. | 
| Set<K1> | keySet()Returns a set of the keys of the outermost map. | 
| Object | set(K1 firstKey,
   K2 secondKey,
   K3 thirdKey,
   V value)Insert a value | 
| int | size()Returns the number of key-value mappings in this map for the first key. | 
| int | size(K1 firstKey)Returns the number of key-value mappings in this map for the second key. | 
| int | size(K1 firstKey,
    K2 secondKey)Returns the number of key-value mappings in this map for the third key. | 
public boolean containsKey(K1 firstKey, K2 secondKey)
firstKey - first keysecondKey - second keypublic boolean containsKey(K1 firstKey, K2 secondKey, K3 thirdKey)
firstKey - first keysecondKey - second keythirdKey - third keypublic HashMap<K2,HashMap<K3,V>> get(K1 firstKey)
firstKey - first keypublic TwoDHashMap<K2,K3,V> getAs2d(K1 firstKey)
firstKey - first keypublic HashMap<K3,V> get(K1 firstKey, K2 secondKey)
firstKey - first keysecondKey - second keypublic V get(K1 firstKey, K2 secondKey, K3 thirdKey)
firstKey - first keysecondKey - second keythirdKey - third keypublic Object set(K1 firstKey, K2 secondKey, K3 thirdKey, V value)
firstKey - first keysecondKey - second keythirdKey - third keyvalue - the value to be inserted. null may be inserted as well.public int size()
public int size(K1 firstKey)
public int size(K1 firstKey, K2 secondKey)
Copyright © 2007-2013 Super CSV. All Rights Reserved.