public class LocalDateConverter extends AbstractErpTypeConverter<org.joda.time.LocalDate>
LocalDate
.Modifier and Type | Field and Description |
---|---|
static LocalDateConverter |
INSTANCE |
static String |
PATTERN_WITH_DASHES |
static String |
PATTERN_WITHOUT_DELIMITER |
Constructor and Description |
---|
LocalDateConverter() |
LocalDateConverter(String pattern) |
Modifier and Type | Method and Description |
---|---|
ConvertedObject<org.joda.time.LocalDate> |
fromDomainNonNull(String domainObject)
Actual converter implementation from a domain-specific object to an arbitrary type.
|
Class<org.joda.time.LocalDate> |
getType()
Getter for an class object of the type to convert from/to the domain-specific counterpart.
|
ConvertedObject<String> |
toDomainNonNull(org.joda.time.LocalDate 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 LocalDateConverter INSTANCE
public static final String PATTERN_WITHOUT_DELIMITER
public static final String PATTERN_WITH_DASHES
public Class<org.joda.time.LocalDate> getType()
TypeConverter
T
.public ConvertedObject<String> toDomainNonNull(@NonNull org.joda.time.LocalDate object)
AbstractTypeConverter
toDomainNonNull
in class AbstractTypeConverter<org.joda.time.LocalDate,String>
object
- The object to transform to its domain-specific counterpart.public ConvertedObject<org.joda.time.LocalDate> fromDomainNonNull(@NonNull String domainObject) throws ParseException
AbstractTypeConverter
fromDomainNonNull
in class AbstractTypeConverter<org.joda.time.LocalDate,String>
domainObject
- The domain-specific object to transform.ParseException
Copyright © 2018 SAP SE. All rights reserved.