C - The type of the config instancepublic class GenericEnumSerializer<C> extends ConfigTypeSerializer<C,java.lang.Enum>
config| Constructor and Description |
|---|
GenericEnumSerializer(C config) |
| Modifier and Type | Method and Description |
|---|---|
java.lang.Enum |
deserialize(java.lang.Class<java.lang.Enum> typeClass,
java.lang.Object serializedObject)
Deserializes the given yaml object to the type
T. |
java.lang.Object |
serialize(java.lang.Enum object)
Serializes the given object to a yaml object.
|
deserialize, deserialize, deserialize, serialize, serializepublic GenericEnumSerializer(C config)
public java.lang.Enum deserialize(java.lang.Class<java.lang.Enum> typeClass,
java.lang.Object serializedObject)
ConfigTypeSerializerT.Tag for the possible types.deserialize in class ConfigTypeSerializer<C,java.lang.Enum>typeClass - The class of the type to deserializeserializedObject - The object to deserializepublic java.lang.Object serialize(java.lang.Enum object)
ConfigTypeSerializerTag for the possible types.serialize in class ConfigTypeSerializer<C,java.lang.Enum>object - The object to serialize