Package com.google.gwt.user.server.rpc
Class EnumMap<K extends java.lang.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:
java.io.Serializable,java.lang.Cloneable,java.util.Map<K,V>
class EnumMap<K extends java.lang.Enum<K>,V> extends java.util.EnumMap<K,V>A serialization-compatible mock forEnumMapthat uses an equalserialVersionUIDand a compatible set of fields. When de-serializing anEnumMapinstance into an instance of this class, e.g., by overridingObjectInputStream'sObjectInputStream#resolveClassmethod such that it delivers this class instead ofEnumMap, the fields are made accessible through getters; in particular,getKeyType()reveals the originalEnumMap'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 anyEnumMap, even if it's empty.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Class<K>getKeyType()K[]getKeyUniverse()intgetSize()java.lang.Object[]getVals()-
Methods inherited from class java.util.EnumMap
clear, clone, containsKey, containsValue, entrySet, equals, get, hashCode, keySet, put, putAll, remove, size, values
-
-