Interface TypeConverter<SOURCE_TYPE,TARGET_TYPE>


public interface TypeConverter<SOURCE_TYPE,TARGET_TYPE>
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
    Converts the given source object to the target type.
  • Method Details

    • convert

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