Package games.stendhal.server.util
Class MapOfMaps<K,V,W>
java.lang.Object
games.stendhal.server.util.MapOfMaps<K,V,W>
- Type Parameters:
K
- type of primary keyV
- type of secondary keyW
- type of value
A Map which contains maps
- Author:
- hendrik
-
Nested Class Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
clear()
boolean
containsKey(Object key)
boolean
containsValue(Object value)
entrySet()
gets a valueboolean
isEmpty()
keySet()
adds an entry to the mapvoid
int
size()
toString()
Collection<Map<V,W>>
values()
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface java.util.Map
compute, computeIfAbsent, computeIfPresent, equals, forEach, getOrDefault, hashCode, merge, putIfAbsent, remove, replace, replace, replaceAll
-
Constructor Details
-
MapOfMaps
public MapOfMaps()
-
-
Method Details
-
clear
public void clear() -
containsKey
- Specified by:
containsKey
in interfaceMap<K,V>
-
containsValue
- Specified by:
containsValue
in interfaceMap<K,V>
-
entrySet
-
get
-
get
gets a value- Parameters:
key
- keysubKey
- sub key- Returns:
- value
-
isEmpty
public boolean isEmpty() -
keySet
-
put
-
putAll
-
remove
-
size
public int size() -
values
-
toString
-
put
adds an entry to the map- Parameters:
key
- primary keysubKey
- secondary keyvalue
- value- Returns:
- old value
-