public interface WithTime
Modifier and Type | Method and Description |
---|---|
default java.time.Instant |
instant()
Obtains the associated time point as
Instant . |
default boolean |
isAfter(com.google.protobuf.Timestamp bound)
Verifies if associated time is after the passed point in time.
|
default boolean |
isBefore(com.google.protobuf.Timestamp bound)
Verifies if the associated time is before the passed point in time.
|
default boolean |
isBetween(com.google.protobuf.Timestamp periodStart,
com.google.protobuf.Timestamp periodEnd)
Verifies if the associated time point is within the passed period of time.
|
default java.time.LocalDate |
localDate()
Obtains the local date of the WithTime.instant() associated time point}.
|
default java.time.LocalDateTime |
localDateTime()
Obtains the local date and time of the WithTime.instant() associated time point}.
|
com.google.protobuf.Timestamp |
timestamp()
Obtains the point in time associated with the object.
|
com.google.protobuf.Timestamp timestamp()
default boolean isAfter(com.google.protobuf.Timestamp bound)
default boolean isBefore(com.google.protobuf.Timestamp bound)
default boolean isBetween(com.google.protobuf.Timestamp periodStart, com.google.protobuf.Timestamp periodEnd)
periodStart
- lower bound, exclusiveperiodEnd
- higher bound, inclusivetrue
if the time point of the command creation lies in between the given twodefault java.time.Instant instant()
Instant
.WithTime.timestamp()
default java.time.LocalDate localDate()
default java.time.LocalDateTime localDateTime()