public interface DominoDateTime extends IAdaptable, Temporal, Cloneable, DominoTimeType, Comparable<DominoDateTime>
Temporal
representation, these values have the following
characteristics:
OffsetDateTime
.Implementations of this class are expected to be immutable.
Modifier and Type | Method and Description |
---|---|
DominoDateTime |
clone() |
boolean |
hasDate() |
boolean |
hasTime() |
boolean |
isValid()
Determines whether the underlying date/time value is invalid.
|
LocalDate |
toLocalDate()
Converts the value to a
LocalDate object if applicable |
LocalTime |
toLocalTime()
Converts the value to a
LocalTime object if applicable |
OffsetDateTime |
toOffsetDateTime()
Converts the value to a
OffsetDateTime object if applicable |
Optional<Temporal> |
toTemporal()
Converts the value to a standard JDK
Temporal implementation based on
the internal value. |
getAdapter
isSupported, minus, minus, plus, plus, until, with, with
get, getLong, isSupported, query, range
compareTo
boolean hasDate()
boolean hasTime()
DominoDateTime clone()
Optional<Temporal> toTemporal()
Temporal
implementation based on
the internal value. Expected to be one of:
OffsetDateTime toOffsetDateTime()
OffsetDateTime
object if applicableOffsetDateTime
object representing the same value as this objectDateTimeException
- if unable to convert to an OffsetDateTime
LocalDate toLocalDate()
LocalDate
object if applicableLocalDate
object representing the same value as this objectDateTimeException
- if unable to convert to an LocalDate
LocalTime toLocalTime()
LocalTime
object if applicableLocalTime
object representing the same value as this objectDateTimeException
- if unable to convert to an LocalTime
boolean isValid()
true
if the time value is valid and can be expressed properly; false
otherwiseCopyright © 2019–2021 HCL. All rights reserved.