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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclear()booleancontainsKey(Object key) booleancontainsValue(Object value) entrySet()gets a valuebooleanisEmpty()keySet()adds an entry to the mapvoidintsize()toString()Collection<Map<V,W>> values()Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods 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:
containsKeyin interfaceMap<K,V>
-
containsValue
- Specified by:
containsValuein 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
-