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
-
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:TypeConverter
Transforms the given object to its domain-specific counterpart.- Specified by:
toDomain
in interfaceTypeConverter<Object,
Object> - Parameters:
object
- The object to transform.- Returns:
- A
ConvertedObject
wrapping the domain-specific object.
-
fromDomain
Description copied from interface:TypeConverter
Transforms the given domain-specific object to the general object.- Specified by:
fromDomain
in interfaceTypeConverter<Object,
Object> - Parameters:
domainObject
- The domain-specific object to transform.- Returns:
- A
ConvertedObject
wrapping the general object.
-
getType
Description copied from interface:TypeConverter
Getter for an class object of the type to convert from/to the domain-specific counterpart.- Specified by:
getType
in interfaceTypeConverter<Object,
Object> - Returns:
- The class object of
T
.
-
getDomainType
Description copied from interface:TypeConverter
Getter for an class object of the domain-specific type.- Specified by:
getDomainType
in interfaceTypeConverter<Object,
Object> - Returns:
- The class object of
DomainT
.
-