public static class ConfigValueParser.StringParser extends java.lang.Object implements ConfigValueParser<java.lang.String>
ConfigValueParser.BooleanParser, ConfigValueParser.IntegerParser, ConfigValueParser.LongParser, ConfigValueParser.StringListParser, ConfigValueParser.StringParser
Constructor and Description |
---|
StringParser() |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
compose(java.lang.String fromValue)
Parse a String value in the config into the appropriate object.
|
java.lang.String |
decompose(java.lang.String value)
Parse an object into a String value to save in the config.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getParserFor, nullInvalidException, toStringParser
public java.lang.String compose(java.lang.String fromValue)
ConfigValueParser
compose
in interface ConfigValueParser<java.lang.String>
fromValue
- String value in the config.public java.lang.String decompose(java.lang.String value)
ConfigValueParser
decompose
in interface ConfigValueParser<java.lang.String>
value
- Value to save, not null.