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
-
Method Summary
Modifier and TypeMethodDescriptionvoid
adds an entryvoid
clear()
boolean
containsKey(Object key)
boolean
containsValue(Object value)
entrySet()
boolean
isEmpty()
keySet()
void
void
removeValue(V value)
removes an entryint
size()
toString()
Collection<List<V>>
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
-
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
-