Class EnumMapTypeAdapter<T extends Enum<T>>
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
INSTANCE
-
-
Constructor Details
-
EnumMapTypeAdapter
public EnumMapTypeAdapter()
-
-
Method Details
-
deserialize
Description copied from class:TypeAdapterDeserializes the value from YAML.- Specified by:
deserializein classTypeAdapter<EnumMap<T extends Enum<T>, Object>, Map<String,Object>> - Parameters:
registry- The type adapter registry context.input- The object from YAML.type- The type information associated with the deserialized object.- Returns:
- The deserialized form of the object.
-
serialize
public Map<String,Object> serialize(TypeAdapterRegistry registry, EnumMap<T, Object> value, Type type) Description copied from class:TypeAdapterSerializes the value to YAML.- Specified by:
serializein classTypeAdapter<EnumMap<T extends Enum<T>, Object>, Map<String,Object>> - Parameters:
registry- The type adapter registry context.value- The deserialized form of the object.type- The type information associated with the deserialized object.- Returns:
- The serialized form of the object.
-