Interface TypeConverter<S,T>

Type Parameters:
S - The source generic type
T - The target generic type

public interface TypeConverter<S,T>
All type converters must implement this interface. A type converter must be stateless, simple and thread safe. Even if direct injection is available, it is not recommended to perform too complex, blocking or slow operation.
  • Method Summary

    Modifier and Type
    Method
    Description
    convert(S source)
    Converts the given source object to the target type.
  • Method Details

    • convert

      T convert(S source)
      Converts the given source object to the target type.
      Parameters:
      source - The source object to convert
      Returns:
      The converted object