Package nl.gx.webmanager.handler.util
Class ThreeDimMap
- java.lang.Object
-
- java.util.AbstractMap<K,V>
-
- java.util.HashMap<K,V>
-
- java.util.LinkedHashMap
-
- nl.gx.webmanager.handler.util.TableMap
-
- nl.gx.webmanager.handler.util.ThreeDimMap
-
- All Implemented Interfaces:
Serializable
,Cloneable
,Map
public class ThreeDimMap extends TableMap
A trivial extension of the TableMap to support threedimensional data storage. This class uses its parent 2D dimensional storage to store the third dimension in another map. Note for four, five, six, ... dimensional datastructures, this class can be extended once more. Additionally a n dimensional storage facility could be created by creating a recursive subclass of Map that uses a list of keys.- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class java.util.AbstractMap
AbstractMap.SimpleEntry<K extends Object,V extends Object>, AbstractMap.SimpleImmutableEntry<K extends Object,V extends Object>
-
-
Constructor Summary
Constructors Constructor Description ThreeDimMap()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Object
get(Object firstdimension, Object seconddimension, Object thirddimension)
void
put(Object firstdimension, Object seconddimension, Object thirddimension, Object value)
Stores a value at the provided coordinates.-
Methods inherited from class java.util.LinkedHashMap
clear, containsValue, entrySet, forEach, get, getOrDefault, keySet, removeEldestEntry, replaceAll, values
-
Methods inherited from class java.util.HashMap
clone, compute, computeIfAbsent, computeIfPresent, containsKey, isEmpty, merge, put, putAll, putIfAbsent, remove, remove, replace, replace, size
-
Methods inherited from class java.util.AbstractMap
equals, hashCode, toString
-
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface java.util.Map
compute, computeIfAbsent, computeIfPresent, containsKey, equals, hashCode, isEmpty, merge, put, putAll, putIfAbsent, remove, remove, replace, replace, size
-
-