Class IdentityConverter
java.lang.Object
com.sap.cloud.sdk.s4hana.datamodel.odata.adapter.IdentityConverter
- All Implemented Interfaces:
TypeConverter<Object,Object>
Default implementation of the
TypeConverter interface, returning all given objects unchanged.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfromDomain(Object domainObject) Transforms the given domain-specific object to the general object.Getter for an class object of the domain-specific type.getType()Getter for an class object of the type to convert from/to the domain-specific counterpart.Transforms the given object to its domain-specific counterpart.
-
Constructor Details
-
IdentityConverter
public IdentityConverter()
-
-
Method Details
-
toDomain
Description copied from interface:TypeConverterTransforms the given object to its domain-specific counterpart.- Specified by:
toDomainin interfaceTypeConverter<Object,Object> - Parameters:
object- The object to transform.- Returns:
- A
ConvertedObjectwrapping the domain-specific object.
-
fromDomain
Description copied from interface:TypeConverterTransforms the given domain-specific object to the general object.- Specified by:
fromDomainin interfaceTypeConverter<Object,Object> - Parameters:
domainObject- The domain-specific object to transform.- Returns:
- A
ConvertedObjectwrapping the general object.
-
getType
Description copied from interface:TypeConverterGetter for an class object of the type to convert from/to the domain-specific counterpart.- Specified by:
getTypein interfaceTypeConverter<Object,Object> - Returns:
- The class object of
T.
-
getDomainType
Description copied from interface:TypeConverterGetter for an class object of the domain-specific type.- Specified by:
getDomainTypein interfaceTypeConverter<Object,Object> - Returns:
- The class object of
DomainT.
-