Class ThreeDHashMap<K1,K2,K3,V>
java.lang.Object
org.supercsv.util.ThreeDHashMap<K1,K2,K3,V>
- Type Parameters:
K1- the first key typeK2- the second key typeK3- the third key typeV- the value type
A 3-dimensional HashMap is a HashMap that enables you to refer to values via three keys rather than one. The
underlying implementation is simply a HashMap containing HashMap containing a HashMap, each of which maps to values.
- Since:
- 2.0.0 (migrated from Spiffy 0.5)
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleancontainsKey(K1 firstKey, K2 secondKey) Existence check of a value (or null) mapped to the keys.booleancontainsKey(K1 firstKey, K2 secondKey, K3 thirdKey) Existence check of a value (or null) mapped to the keys.Fetch the outermost Hashmap.Fetch the innermost Hashmap.Fetch a value from the Hashmap.TwoDHashMap<K2, K3, V> Fetch the outermost Hashmap as a TwoDHashMap.keySet()Returns a set of the keys of the outermost map.Insert a valueintsize()Returns the number of key-value mappings in this map for the first key.intReturns the number of key-value mappings in this map for the second key.intReturns the number of key-value mappings in this map for the third key.
-
Field Details
-
map
-
-
Constructor Details
-
ThreeDHashMap
public ThreeDHashMap()
-
-
Method Details
-
containsKey
-
containsKey
-
get
-
getAs2d
Fetch the outermost Hashmap as a TwoDHashMap.- Parameters:
firstKey- first key- Returns:
- the the innermost hashmap
-
get
-
get
-
set
-
size
public int size()Returns the number of key-value mappings in this map for the first key.- Returns:
- Returns the number of key-value mappings in this map for the first key.
-
size
Returns the number of key-value mappings in this map for the second key.- Parameters:
firstKey- the first key- Returns:
- Returns the number of key-value mappings in this map for the second key.
-
size
-
keySet
-