Class LocalDateConverter
java.lang.Object
com.sap.cloud.sdk.typeconverter.AbstractTypeConverter<T,String>
com.sap.cloud.sdk.s4hana.serialization.AbstractErpTypeConverter<LocalDate>
com.sap.cloud.sdk.s4hana.serialization.LocalDateConverter
- All Implemented Interfaces:
ErpTypeConverter<LocalDate>
,TypeConverter<LocalDate,
String>
Deprecated.
This module will be discontinued, along with its classes and methods.
Type converter for
LocalDate
.-
Field Summary
Modifier and TypeFieldDescriptionstatic final LocalDateConverter
Deprecated.Statically created instance of this converter.static final String
Deprecated.DateTimeFormat pattern suited for the date format 2018-12-31static final String
Deprecated.DateTimeFormat pattern suited for the date format 20181231 -
Constructor Summary
ConstructorDescriptionDeprecated.Creates an instance that formatsLocalDate
instances with the patternPATTERN_WITHOUT_DELIMITER
.LocalDateConverter
(String pattern) Deprecated.Creates an instance with the given pattern. -
Method Summary
Modifier and TypeMethodDescriptionfromDomainNonNull
(String domainObject) Deprecated.Actual converter implementation from a domain-specific object to an arbitrary type.getType()
Deprecated.Getter for an class object of the type to convert from/to the domain-specific counterpart.toDomainNonNull
(LocalDate object) Deprecated.Actual converter implementation from an arbitrary object to its domain-specific counterpart.Methods inherited from class com.sap.cloud.sdk.s4hana.serialization.AbstractErpTypeConverter
getDomainType
Methods inherited from class com.sap.cloud.sdk.typeconverter.AbstractTypeConverter
fromDomain, toDomain
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.sap.cloud.sdk.typeconverter.TypeConverter
fromDomain, toDomain
-
Field Details
-
INSTANCE
Deprecated.Statically created instance of this converter. -
PATTERN_WITHOUT_DELIMITER
Deprecated.DateTimeFormat pattern suited for the date format 20181231- See Also:
-
PATTERN_WITH_DASHES
Deprecated.DateTimeFormat pattern suited for the date format 2018-12-31- See Also:
-
-
Constructor Details
-
LocalDateConverter
public LocalDateConverter()Deprecated.Creates an instance that formatsLocalDate
instances with the patternPATTERN_WITHOUT_DELIMITER
. For parsing, the format depends on the input String. If the input String contains "-",PATTERN_WITH_DASHES
is used; otherwise,PATTERN_WITHOUT_DELIMITER
is used. -
LocalDateConverter
Deprecated.Creates an instance with the given pattern.- Parameters:
pattern
- The pattern forLocalDate
. ifnull
, this constructor creates an instance that formatsLocalDate
instances with the patternPATTERN_WITHOUT_DELIMITER
. For parsing, the format depends on the input String. If the input String contains "-",PATTERN_WITH_DASHES
is used; otherwise,PATTERN_WITHOUT_DELIMITER
is used.
-
-
Method Details
-
getType
Deprecated.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
.
-
toDomainNonNull
Deprecated.Description copied from class:AbstractTypeConverter
Actual converter implementation from an arbitrary object to its domain-specific counterpart.- Specified by:
toDomainNonNull
in classAbstractTypeConverter<LocalDate,
String> - Parameters:
object
- The object to transform to its domain-specific counterpart.- Returns:
- A wrapper containing the domain-specific counterpart.
-
fromDomainNonNull
Deprecated.Description copied from class:AbstractTypeConverter
Actual converter implementation from a domain-specific object to an arbitrary type.- Specified by:
fromDomainNonNull
in classAbstractTypeConverter<LocalDate,
String> - Parameters:
domainObject
- The domain-specific object to transform.- Returns:
- A wrapper containing the converted object.
-