Class ConfigValueParser.DoubleParser
java.lang.Object
com.djrapitops.plan.settings.config.ConfigValueParser.DoubleParser
- All Implemented Interfaces:
ConfigValueParser<Double>
- Enclosing interface:
ConfigValueParser<T>
public static class ConfigValueParser.DoubleParser
extends Object
implements ConfigValueParser<Double>
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.djrapitops.plan.settings.config.ConfigValueParser
ConfigValueParser.BooleanParser, ConfigValueParser.DoubleParser, ConfigValueParser.IntegerParser, ConfigValueParser.LongParser, ConfigValueParser.StringListParser, ConfigValueParser.StringParser -
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
DoubleParser
public DoubleParser()
-
-
Method Details
-
compose
Description copied from interface:ConfigValueParserParse a String value in the config into the appropriate object.- Specified by:
composein interfaceConfigValueParser<Double>- Parameters:
fromValue- String value in the config.- Returns:
- Config value or null if it could not be parsed.
-
decompose
Description copied from interface:ConfigValueParserParse an object into a String value to save in the config.- Specified by:
decomposein interfaceConfigValueParser<Double>- Parameters:
ofValue- Value to save, not null.- Returns:
- String format to save in the config.
-