Class ConfigValueParser.StringListParser

  • All Implemented Interfaces:
    ConfigValueParser<java.util.List<java.lang.String>>
    Enclosing interface:
    ConfigValueParser<T>

    public static class ConfigValueParser.StringListParser
    extends java.lang.Object
    implements ConfigValueParser<java.util.List<java.lang.String>>
    • Constructor Detail

      • StringListParser

        public StringListParser()
    • Method Detail

      • compose

        public java.util.List<java.lang.String> 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 interface ConfigValueParser<java.util.List<java.lang.String>>
        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.util.List<java.lang.String> ofValue)
        Description copied from interface: ConfigValueParser
        Parse an object into a String value to save in the config.
        Specified by:
        decompose in interface ConfigValueParser<java.util.List<java.lang.String>>
        Parameters:
        ofValue - Value to save, not null.
        Returns:
        String format to save in the config.