Class MapTypeAdapter
- Direct Known Subclasses:
SortedMapTypeAdapter
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondeserialize(TypeAdapterRegistry registry, Object input, Type type) Deserializes the value from YAML.Serializes the value to YAML.protected LinkedHashMap<String, Object> sortMap(LinkedHashMap<String, Object> map)
-
Field Details
-
INSTANCE
-
-
Constructor Details
-
MapTypeAdapter
public MapTypeAdapter()
-
-
Method Details
-
sortMap
-
deserialize
Description copied from class:TypeAdapterDeserializes the value from YAML.- Specified by:
deserializein classTypeAdapter<Map<Object,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 final Map<String,Object> serialize(TypeAdapterRegistry registry, Map<Object, Object> value, Type type) Description copied from class:TypeAdapterSerializes the value to YAML.- Specified by:
serializein classTypeAdapter<Map<Object,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.
-