Class MinuteHasPassed
java.lang.Object
org.springframework.modulith.moments.MinuteHasPassed
- All Implemented Interfaces:
org.jmolecules.event.types.DomainEvent
A
DomainEvent published on each minute.- Author:
- John Cunliffe
-
Method Summary
Modifier and TypeMethodDescriptionbooleangetTime()The minute that has just passed.inthashCode()static MinuteHasPassedof(LocalDateTime time) Creates a newMinuteHasPassedfor the givenLocalDateTime.
-
Method Details
-
of
Creates a newMinuteHasPassedfor the givenLocalDateTime.- Parameters:
time- must not be null.
-
getTime
The minute that has just passed.- Returns:
- will never be null.
-
equals
-
hashCode
public int hashCode()
-