Interface Encoder<S,T>

All Superinterfaces:
JsonSerializable, RecordSerializable
All Known Implementing Classes:
Encoder.HexEncoder, Encoder.NullEncoder

public interface Encoder<S,T> extends RecordSerializable
Converts values to and from an encoded form, such as the password stored by a JdbcConnection.
  • Field Details

  • Method Details

    • encode

      T encode(S source)
      Returns the encoded form of the value; decode(Object) must turn it back into the original.
    • decode

      S decode(T target)