Interface Converter<S,T>
- Type Parameters:
S- The source typeT- 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
-
Method Details
-
convert
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
-