Package com.google.gwt.user.server.rpc
Class EnumMap<K extends Enum<K>,V>
java.lang.Object
java.util.AbstractMap<K,V>
java.util.EnumMap<K,V>
com.google.gwt.user.server.rpc.EnumMap<K,V>
- All Implemented Interfaces:
Serializable
,Cloneable
,Map<K,
V>
A serialization-compatible mock for
EnumMap
that uses an equal
serialVersionUID
and a compatible set of fields. When de-serializing an
EnumMap
instance into an instance of this class, e.g., by overriding
ObjectInputStream
's ObjectInputStream#resolveClass
method such that it delivers
this class instead of EnumMap
, the fields are made accessible through getters;
in particular, getKeyType()
reveals the original EnumMap
's key type,
even if the map is empty.
The EnumMap#getEnumMapKeyType(java.util.EnumMap)
method can be used to determine the key
type of any EnumMap
, even if it's empty.
-
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
-
Method Summary
Methods inherited from class java.util.EnumMap
clear, clone, containsKey, containsValue, entrySet, equals, get, hashCode, keySet, put, putAll, remove, size, values
Methods inherited from class java.util.AbstractMap
isEmpty, 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, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAll
-
Constructor Details
-
EnumMap
-
-
Method Details
-
getKeyUniverse
-
getVals
-
getSize
public int getSize() -
getKeyType
-