Interface ConfigValueParser<T>
- Type Parameters:
T- Type of the object being parsed.
- All Known Implementing Classes:
ConfigValueParser.BooleanParser, ConfigValueParser.DoubleParser, ConfigValueParser.IntegerParser, ConfigValueParser.LongParser, ConfigValueParser.StringListParser, ConfigValueParser.StringParser
public interface ConfigValueParser<T>
Utilities for parsing config values.
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic classstatic classstatic classstatic classstatic classstatic class -
Method Summary
Modifier and TypeMethodDescriptionParse a String value in the config into the appropriate object.Parse an object into a String value to save in the config.static ConfigValueParsergetParserFor(Class type) static IllegalArgumentExceptionstatic ConfigValueParser
-
Method Details
-
getParserFor
-
toStringParser
-
compose
-
decompose
Parse an object into a String value to save in the config.- Parameters:
ofValue- Value to save, not null.- Returns:
- String format to save in the config.
- Throws:
IllegalArgumentException- If null value is given.
-
nullInvalidException
-