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