Class DefaultConverter
java.lang.Object
me.hsgamer.hscore.config.annotation.converter.impl.DefaultConverter
- All Implemented Interfaces:
Converter
The default
Converter
, which does nothing, so the raw value and the final value are the same type-
Constructor Summary
-
Method Summary
-
Constructor Details
-
DefaultConverter
public DefaultConverter()
-
-
Method Details
-
convert
Description copied from interface:Converter
Convert the raw value from the config file to the final value for the field -
convertToRaw
Description copied from interface:Converter
Convert the final value from the field to the raw value for the config file- Specified by:
convertToRaw
in interfaceConverter
- Parameters:
value
- the final value- Returns:
- the raw value
-