Class HourHasPassed
java.lang.Object
org.springframework.modulith.moments.HourHasPassed
- All Implemented Interfaces:
org.jmolecules.event.types.DomainEvent
A
DomainEvent
published on each day.- Author:
- Oliver Drotbohm
-
Method Summary
Modifier and TypeMethodDescriptionboolean
getTime()
The hour that has just passed.int
hashCode()
static HourHasPassed
of
(LocalDateTime time) Creates a newHourHasPassed
for the givenLocalDateTime
.
-
Method Details
-
of
Creates a newHourHasPassed
for the givenLocalDateTime
.- Parameters:
time
- must not be null.
-
getTime
The hour that has just passed.- Returns:
- will never be null.
-
equals
-
hashCode
public int hashCode()
-