Interface Converter<S,T>

Type Parameters:
S - The source type
T - The target type
All Known Implementing Classes:
ItemsToValidationResultConverter, ItemToBundleConverter, ItemToCountryConverter, ItemToLicenseConverter, ItemToLicenseeConverter, ItemToLicenseTemplateConverter, ItemToLicenseTypePropertiesConverter, ItemToLicensingModelPropertiesConverter, ItemToNotificationConverter, ItemToPaymentMethodConverter, ItemToProductConverter, ItemToProductModuleConverter, ItemToTokenConverter, ItemToTransactionConverter

public interface Converter<S,T>
A converter converts a source object of type S to a target of type T. Implementations of this interface are thread-safe and can be shared.
  • Method Summary

    Modifier and Type
    Method
    Description
    convert(S source)
    Convert the source of type S to target type T.
  • Method Details

    • convert

      T convert(S source) throws ConversionException
      Convert the source of type S to target type T.
      Parameters:
      source - the source object to converter, which must be an instance of S
      Returns:
      the converted object, which must be an instance of T
      Throws:
      ConversionException - if the source could not be converted to the desired target type