public static class ConfigValueParser.IntegerParser extends java.lang.Object implements ConfigValueParser<java.lang.Integer>
ConfigValueParser.BooleanParser, ConfigValueParser.IntegerParser, ConfigValueParser.LongParser, ConfigValueParser.StringListParser, ConfigValueParser.StringParser
Constructor and Description |
---|
IntegerParser() |
Modifier and Type | Method and Description |
---|---|
java.lang.Integer |
compose(java.lang.String fromValue)
Parse a String value in the config into the appropriate object.
|
java.lang.String |
decompose(java.lang.Integer ofValue)
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.Integer compose(java.lang.String fromValue)
ConfigValueParser
compose
in interface ConfigValueParser<java.lang.Integer>
fromValue
- String value in the config.public java.lang.String decompose(java.lang.Integer ofValue)
ConfigValueParser
decompose
in interface ConfigValueParser<java.lang.Integer>
ofValue
- Value to save, not null.