Class SimpleConverter
java.lang.Object
me.hsgamer.hscore.config.annotation.converter.impl.SimpleConverter
- All Implemented Interfaces:
Converter
A simple
Converter that use an operator to convert raw value to final value-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
SimpleConverter
Create a new converter- Parameters:
mapper- the operator
-
-
Method Details
-
convert
Description copied from interface:ConverterConvert the raw value from the config file to the final value for the field -
convertToRaw
Description copied from interface:ConverterConvert the final value from the field to the raw value for the config file- Specified by:
convertToRawin interfaceConverter- Parameters:
value- the final value- Returns:
- the raw value
-