Class ConverterAdapter<S,T>

java.lang.Object
cdc.converters.AbstractConverter<S,T>
cdc.converters.ConverterAdapter<S,T>
Type Parameters:
S - The source type.
T - The target type.
All Implemented Interfaces:
Converter<S,T>, Function<S,T>

public final class ConverterAdapter<S,T> extends AbstractConverter<S,T>
Class used to create a typed converter from a raw converter.
Author:
Damien Carbonne
  • Constructor Details

    • ConverterAdapter

      public ConverterAdapter(Class<S> sourceClass, Class<T> targetClass, Converter<?,?> delegate)
  • Method Details

    • apply

      public T apply(S source)
    • getParams

      public Args getParams()
      Returns:
      The parameters used to configure this converter.
    • getDelegate

      public Converter<?,?> getDelegate()
    • toString

      public String toString()
      Overrides:
      toString in class AbstractConverter<S,T>