Interface EntityConverter<ValueType>

Type Parameters:
ValueType - The type of the entity value.

public interface EntityConverter<ValueType>
Helper to convert Entity values to instances of their respective ValueType and back to String representations.
  • Method Summary

    Modifier and Type
    Method
    Description
    value(String valueString)
    Parses the given string representation of a value into an instance of type ValueType.
    Renders the given entity value into its string representation.
  • Method Details

    • value

      ValueType value(String valueString)
      Parses the given string representation of a value into an instance of type ValueType.
      Parameters:
      valueString - The string representation of the value.
      Returns:
      The value as an object.
    • valueString

      String valueString(ValueType value)
      Renders the given entity value into its string representation.
      Parameters:
      value - The value.
      Returns:
      The string representation of the value.