Interface ConfigValueParser<T>

    • Method Detail

      • compose

        T compose​(java.lang.String fromValue)
        Parse a String value in the config into the appropriate object.
        Parameters:
        fromValue - String value in the config.
        Returns:
        Config value or null if it could not be parsed.
      • decompose

        java.lang.String decompose​(T ofValue)
        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:
        java.lang.IllegalArgumentException - If null value is given.
      • nullInvalidException

        static java.lang.IllegalArgumentException nullInvalidException()