core
1.9.0
jvm
core
/
io.spine.core
/
WithTime
With
Time
public
interface
WithTime
An object with associated point in time.
Inheritors
Signal
Members
Functions
instant
Link copied to clipboard
public
Instant
instant
(
)
Obtains the associated time point as
Instant
.
is
After
Link copied to clipboard
public
boolean
isAfter
(
Timestamp bound
)
Verifies if associated time is after the passed point in time.
is
Before
Link copied to clipboard
public
boolean
isBefore
(
Timestamp bound
)
Verifies if the associated time is before the passed point in time.
is
Between
Link copied to clipboard
public
boolean
isBetween
(
Timestamp periodStart
,
Timestamp periodEnd
)
Verifies if the associated time point is within the passed period of time.
local
Date
Link copied to clipboard
public
LocalDate
localDate
(
)
Obtains the local date of the
instant
associated time point}.
local
Date
Time
Link copied to clipboard
public
LocalDateTime
localDateTime
(
)
Obtains the local date and time of the
instant
associated time point}.
timestamp
Link copied to clipboard
public
abstract
Timestamp
timestamp
(
)
Obtains the point in time associated with the object.