Interface Converter<T>

    • Method Detail

      • getValueType

        Class<? extends T> getValueType()
        Gets the value type.
        Returns:
        The value type.
      • parse

        T parse​(String text)
         throws ConversionException
        Converts a value from its plain text representation to a Java object instance of the type returned by getValueType().
        Parameters:
        text - The textual representation of the value.
        Returns:
        The converted value.
        Throws:
        ConversionException - If the conversion fails.
      • format

        String format​(T value)
        Converts a value of the type returned by getValueType() to its plain text representation.
        Parameters:
        value - The value to be converted to text.
        Returns:
        The textual representation of the value.