Class ConfigValueParser.StringParser

java.lang.Object
com.djrapitops.plan.settings.config.ConfigValueParser.StringParser
All Implemented Interfaces:
ConfigValueParser<String>
Enclosing interface:
ConfigValueParser<T>

public static class ConfigValueParser.StringParser extends Object implements ConfigValueParser<String>
  • Constructor Details

    • StringParser

      public StringParser()
  • Method Details

    • compose

      public String compose(String fromValue)
      Description copied from interface: ConfigValueParser
      Parse a String value in the config into the appropriate object.
      Specified by:
      compose in interface ConfigValueParser<String>
      Parameters:
      fromValue - String value in the config.
      Returns:
      Config value or null if it could not be parsed.
    • decompose

      public String decompose(String value)
      Description copied from interface: ConfigValueParser
      Parse an object into a String value to save in the config.
      Specified by:
      decompose in interface ConfigValueParser<String>
      Parameters:
      value - Value to save, not null.
      Returns:
      String format to save in the config.