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
's
method such that it delivers
this class instead of
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
invalid reference
ObjectInputStream
invalid reference
ObjectInputStream#resolveClass
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
method can be used to determine the key
type of any invalid reference
EnumMap#getEnumMapKeyType(java.util.EnumMap)
EnumMap
, even if it's empty.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.util.AbstractMap
AbstractMap.SimpleEntry<K,
V>, AbstractMap.SimpleImmutableEntry<K, V> -
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
-