Class ConfigValueParser.IntegerParser

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

public static class ConfigValueParser.IntegerParser extends Object implements ConfigValueParser<Integer>
  • Constructor Details

    • IntegerParser

      public IntegerParser()
  • Method Details

    • compose

      public Integer 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<Integer>
      Parameters:
      fromValue - String value in the config.
      Returns:
      Config value or null if it could not be parsed.
    • decompose

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