Interface ValueConverter

    • Method Detail

      • convert

        Object convert​(Object data)
        Convert the column's data value.
        Parameters:
        data - the column data value
        Returns:
        the new data value
      • or

        default ValueConverter or​(ValueConverter fallback)
        Adapt this converter to call the specified fallback converter when this converter returns null for a non-null input.
        Parameters:
        fallback - the converter to fall back to when this converter returns null for a non-null input
        Returns:
        the new converter, or this converter if fallback is null
      • and

        default ValueConverter and​(ValueConverter delegate)
        Return a new converter that calls this converter and passes the result to the specified converter.
        Parameters:
        delegate - the converter to call after this converter
        Returns:
        the new converter, or this converter if delegate is null
      • nullOr

        default ValueConverter nullOr()
        Return a new converter that will call this converter only when the input is not null.
        Returns:
        the new converter; never null