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