Interface Converter<S,T>

All Known Implementing Classes:
StringToBooleanConverter, StringToDateConverter, StringToDoubleConverter, StringToFloatConverter, StringToIntegerConverter, StringToLongConverter, StringToShortConverter, StringToStringConverter

public interface Converter<S,T>
Converts objects of S type to T type.
Author:
avasquez
  • Method Summary

    Modifier and Type
    Method
    Description
    convert(S source)
    Converts the source object from S type to T type.
    Returns the class of the objects this converter converts from.
    Returns the class of the objects this converter converts to.
  • Method Details

    • getSourceClass

      Class<?> getSourceClass()
      Returns the class of the objects this converter converts from.
    • getTargetClass

      Class<?> getTargetClass()
      Returns the class of the objects this converter converts to.
    • convert

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