Class LocalTimeConverter
java.lang.Object
com.sap.cloud.sdk.typeconverter.AbstractTypeConverter<T,String>
com.sap.cloud.sdk.s4hana.serialization.AbstractErpTypeConverter<LocalTime>
com.sap.cloud.sdk.s4hana.serialization.LocalTimeConverter
- All Implemented Interfaces:
ErpTypeConverter<LocalTime>
,TypeConverter<LocalTime,
String>
Deprecated.
This module will be discontinued, along with its classes and methods.
Type converter for
LocalTime
.-
Field Summary
Modifier and TypeFieldDescriptionstatic final LocalTimeConverter
Deprecated.Statically created instance of this converter.static final String
Deprecated.DateTimeFormat pattern suited for the time format 17:34:56static final String
Deprecated.DateTimeFormat pattern suited for the time format 173456 -
Constructor Summary
ConstructorDescriptionDeprecated.Creates an instance that formatsLocalTime
instances with the patternPATTERN_WITHOUT_DELIMITER
.LocalTimeConverter
(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
(LocalTime 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_WITH_COLONS
Deprecated.DateTimeFormat pattern suited for the time format 17:34:56- See Also:
-
PATTERN_WITHOUT_DELIMITER
Deprecated.DateTimeFormat pattern suited for the time format 173456- See Also:
-
-
Constructor Details
-
LocalTimeConverter
public LocalTimeConverter()Deprecated.Creates an instance that formatsLocalTime
instances with the patternPATTERN_WITHOUT_DELIMITER
. For parsing, the format depends on the input String. If the input String contains ":",PATTERN_WITH_COLONS
is used; otherwise,PATTERN_WITHOUT_DELIMITER
is used. -
LocalTimeConverter
Deprecated.Creates an instance with the given pattern.- Parameters:
pattern
- The pattern forLocalTime
. ifnull
, this constructor creates an instance that formatsLocalTime
instances with the patternPATTERN_WITHOUT_DELIMITER
. For parsing, the format depends on the input String. If the input String contains ":",PATTERN_WITH_COLONS
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<LocalTime,
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<LocalTime,
String> - Parameters:
domainObject
- The domain-specific object to transform.- Returns:
- A wrapper containing the converted object.
-