Interface Converter<S,T>

Type Parameters:
S - the type of the input of the converter.
T - the type of the output of the converter.
All Known Implementing Classes:
AbstractPKDataToModelConverter, BooleanValueFlexibleSearchConverter, CategoryToDataContentConverter, CloneComponentMediaContainerDataToAttributeContentConverter, CMSItemToDataContentConverter, CMSItemToDataConverter, ComposedTypeToAttributeCollectionConverter, DateAttributeToDataContentConverter, DateDataToAttributeContentConverter, DateDataToModelConverter, DefaultAttributeToDataContentConverter, DefaultAttributeToDataConverter, DefaultCMSVersionToDataConverter, DefaultCMSVersionToItemModelPreviewConverter, DefaultCMSVersionToItemModelRollbackConverter, DefaultConverter, DefaultDataToAttributeContentConverter, DefaultDataToModelConverter, EnumDataToModelConverter, GenericComposedTypeToStructureConverter, ItemToDataConverter, MediaContainerAttributeToDataContentConverter, MediaContainerAttributeToDataRenderingContentConverter, MediaContainerDataToAttributeContentConverter, MediaContainerToDataConverter, MediaToDataContentConverter, NavigationNodeToDataContentConverter, PageStatusEnumValueFlexibleSearchConverter, PKDataToModelPreviewConverter, PKDataToModelRollbackConverter, ProductToDataContentConverter, UniqueIdentifierAttributeToDataContentConverter, UniqueIdentifierDataToAttributeContentConverter
Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public interface Converter<S,T>
Converter is a Functional interface that accepts one argument and produces another. The converter is expected to create a new instance of the output class.
  • Method Summary

    Modifier and Type
    Method
    Description
    convert(S source)
    Uses the source S object and produces an new instance of T.
  • Method Details

    • convert

      T convert(S source)
      Uses the source S object and produces an new instance of T.
      Parameters:
      source - the input to be converted.
      Returns:
      an instance of T, converted from the input source.