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