public class LocalTimeConverter extends AbstractErpTypeConverter<org.joda.time.LocalTime>
LocalTime
.Modifier and Type | Field and Description |
---|---|
static LocalTimeConverter |
INSTANCE
Statically created instance of this converter
|
static String |
PATTERN_WITH_COLONS
DateTimeFormat pattern suited for the time format 17:34:56
|
static String |
PATTERN_WITHOUT_DELIMITER
DateTimeFormat pattern suited for the time format 173456
|
Constructor and Description |
---|
LocalTimeConverter()
Creates an instance with the pattern specified via
PATTERN_WITHOUT_DELIMITER . |
LocalTimeConverter(String pattern) |
Modifier and Type | Method and Description |
---|---|
ConvertedObject<org.joda.time.LocalTime> |
fromDomainNonNull(String domainObject)
Actual converter implementation from a domain-specific object to an arbitrary type.
|
Class<org.joda.time.LocalTime> |
getType()
Getter for an class object of the type to convert from/to the domain-specific counterpart.
|
ConvertedObject<String> |
toDomainNonNull(org.joda.time.LocalTime object)
Actual converter implementation from an arbitrary object to its domain-specific counterpart.
|
getDomainType
fromDomain, toDomain
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
fromDomain, toDomain
public static final LocalTimeConverter INSTANCE
public static final String PATTERN_WITH_COLONS
public static final String PATTERN_WITHOUT_DELIMITER
public LocalTimeConverter()
PATTERN_WITHOUT_DELIMITER
.public Class<org.joda.time.LocalTime> getType()
TypeConverter
T
.public ConvertedObject<String> toDomainNonNull(@NonNull org.joda.time.LocalTime object)
AbstractTypeConverter
toDomainNonNull
in class AbstractTypeConverter<org.joda.time.LocalTime,String>
object
- The object to transform to its domain-specific counterpart.public ConvertedObject<org.joda.time.LocalTime> fromDomainNonNull(@NonNull String domainObject) throws ParseException
AbstractTypeConverter
fromDomainNonNull
in class AbstractTypeConverter<org.joda.time.LocalTime,String>
domainObject
- The domain-specific object to transform.ParseException
Copyright © 2018 SAP SE. All rights reserved.