public class LocalDateTimeType extends BaseValueType<LocalDateTime>
LocalDateTime type.
This class is threadsafe and uses a singleton pattern to prevent multiple instances, since all users can safely share the same instance.
clazzType| Modifier and Type | Method and Description |
|---|---|
LocalDateTime |
cast(Object o)
Attempt to cast the passed object to the generic type T.
|
static LocalDateTimeType |
get()
Deprecated.
since 0.4.1. Use
instance() instead |
static LocalDateTimeType |
instance() |
LocalDateTime |
parse(String sourceValue)
Parses a String to a
LocalDateTime. |
getDestinationType, isParsable, toString@Deprecated public static LocalDateTimeType get()
instance() insteadLocalDateTimeType()public static LocalDateTimeType instance()
LocalDateTimeType()public LocalDateTime parse(String sourceValue) throws ParsingException
LocalDateTime. The String should already be trimmed.
Parsing is done by calling the LocalDateTime.parse(CharSequence).
sourceValue - The source string, which should already be trimmed and may be nullParsingException - if unparsable.public LocalDateTime cast(Object o) throws RuntimeException
ValueTypeRuntimeExceptionCopyright © 2021. All rights reserved.