Package nl.gx.webmanager.handler.util
Class TableMap
- java.lang.Object
-
- java.util.AbstractMap<K,V>
-
- java.util.HashMap<K,V>
-
- java.util.LinkedHashMap
-
- nl.gx.webmanager.handler.util.TableMap
-
- All Implemented Interfaces:
Serializable
,Cloneable
,Map
- Direct Known Subclasses:
ThreeDimMap
public class TableMap extends LinkedHashMap
Usefull class for storing 2-dimensional data that needs to be accessed by it's coordinates. The data structure consist of a Map of Maps of Objects. Inner maps are automatically created when putting values. The datastructure uses LinkedHashMaps, so it is order preserving. Use the getEntrySet() method from Map, to iterate over the objects in the order they were added.- Author:
- jilles
- 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 TableMap()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Object
get(Object outerkey, Object innerkey)
Retrieve an object.void
put(Object outerkey, Object innerkey, Object value)
Put a value into the tablemap.-
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
-
-