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 TypeMethodDescriptionbooleangetTime()The hour that has just passed.inthashCode()static HourHasPassedof(LocalDateTime time) Creates a newHourHasPassedfor the givenLocalDateTime.
-
Method Details
-
of
Creates a newHourHasPassedfor 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()
-