Package games.stendhal.server.util
Class ClassToInstancesMap<V>
java.lang.Object
games.stendhal.server.util.ClassToInstancesMap<V>
- Type Parameters:
V- type of value
A map from classes to a list of instances
- Author:
- hendrik
-
Nested Class Summary
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidadds an entryvoidclear()booleancontainsKey(Object key) booleancontainsValue(Object value) entrySet()booleanisEmpty()keySet()voidvoidremoveValue(V value) removes an entryintsize()toString()Collection<List<V>>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
-
ClassToInstancesMap
public ClassToInstancesMap()
-
-
Method Details
-
clear
public void clear() -
containsKey
-
containsValue
-
entrySet
-
get
-
isEmpty
public boolean isEmpty() -
keySet
-
put
-
putAll
-
remove
-
size
public int size() -
values
-
toString
-
addValue
adds an entry- Parameters:
value- value
-
removeValue
removes an entry- Parameters:
value- value
-