Class ZonedDateTimeCalendarConverter
java.lang.Object
com.sap.cloud.sdk.typeconverter.AbstractTypeConverter<ZonedDateTime,Calendar>
com.sap.cloud.sdk.s4hana.datamodel.odata.adapter.ZonedDateTimeCalendarConverter
- All Implemented Interfaces:
TypeConverter<ZonedDateTime,
Calendar>
Converts between the deprecated
Calendar
type and the new ZonedDateTime
.
In combination with the ODataField
annotation this can be used to expose fields of OData value which would be
exposed as Calendar
as ZonedDateTime
.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionfromDomainNonNull
(Calendar domainObject) Actual converter implementation from a domain-specific object to an arbitrary type.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.toDomainNonNull
(ZonedDateTime object) Actual converter implementation from an arbitrary object to its domain-specific counterpart.Methods inherited from class com.sap.cloud.sdk.typeconverter.AbstractTypeConverter
fromDomain, toDomain
-
Constructor Details
-
ZonedDateTimeCalendarConverter
public ZonedDateTimeCalendarConverter()
-
-
Method Details
-
toDomainNonNull
Description copied from class:AbstractTypeConverter
Actual converter implementation from an arbitrary object to its domain-specific counterpart.- Specified by:
toDomainNonNull
in classAbstractTypeConverter<ZonedDateTime,
Calendar> - Parameters:
object
- The object to transform to its domain-specific counterpart.- Returns:
- A wrapper containing the domain-specific counterpart.
-
fromDomainNonNull
Description copied from class:AbstractTypeConverter
Actual converter implementation from a domain-specific object to an arbitrary type.- Specified by:
fromDomainNonNull
in classAbstractTypeConverter<ZonedDateTime,
Calendar> - Parameters:
domainObject
- The domain-specific object to transform.- Returns:
- A wrapper containing the converted object.
-
getType
Description copied from interface:TypeConverter
Getter for an class object of the type to convert from/to the domain-specific counterpart.- Returns:
- The class object of
T
.
-
getDomainType
Description copied from interface:TypeConverter
Getter for an class object of the domain-specific type.- Returns:
- The class object of
DomainT
.
-