Class Event
java.lang.Object
com.github.philippheuer.events4j.core.domain.Event
- All Implemented Interfaces:
com.github.philippheuer.events4j.api.domain.IEvent
public abstract class Event
extends java.lang.Object
implements com.github.philippheuer.events4j.api.domain.IEvent
Used to represent an event.
- Since:
- 1.0
-
Constructor Summary
Constructors Constructor Description Event()Constructor -
Method Summary
Modifier and Type Method Description protected booleancanEqual(java.lang.Object other)booleanequals(java.lang.Object o)java.lang.StringgetEventId()Unique event idjava.util.CalendargetFiredAt()java.time.InstantgetFiredAtInstant()Event fired atcom.github.philippheuer.events4j.api.service.IServiceMediatorgetServiceMediator()Holds a reference to the ServiceMediator to access 3rd party servicesinthashCode()voidsetEventId(java.lang.String eventId)Unique event idvoidsetFiredAt(java.util.Calendar calendar)voidsetFiredAtInstant(java.time.Instant firedAtInstant)Event fired atvoidsetServiceMediator(com.github.philippheuer.events4j.api.service.IServiceMediator serviceMediator)Holds a reference to the ServiceMediator to access 3rd party servicesjava.lang.StringtoString()Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Constructor Details
-
Event
public Event()Constructor
-
-
Method Details
-
getFiredAt
public java.util.Calendar getFiredAt()- Specified by:
getFiredAtin interfacecom.github.philippheuer.events4j.api.domain.IEvent
-
setFiredAt
public void setFiredAt(java.util.Calendar calendar)- Specified by:
setFiredAtin interfacecom.github.philippheuer.events4j.api.domain.IEvent
-
getEventId
public java.lang.String getEventId()Unique event id- Specified by:
getEventIdin interfacecom.github.philippheuer.events4j.api.domain.IEvent
-
getFiredAtInstant
public java.time.Instant getFiredAtInstant()Event fired at- Specified by:
getFiredAtInstantin interfacecom.github.philippheuer.events4j.api.domain.IEvent
-
getServiceMediator
public com.github.philippheuer.events4j.api.service.IServiceMediator getServiceMediator()Holds a reference to the ServiceMediator to access 3rd party services- Specified by:
getServiceMediatorin interfacecom.github.philippheuer.events4j.api.domain.IEvent
-
setEventId
public void setEventId(java.lang.String eventId)Unique event id- Specified by:
setEventIdin interfacecom.github.philippheuer.events4j.api.domain.IEvent
-
setFiredAtInstant
public void setFiredAtInstant(java.time.Instant firedAtInstant)Event fired at- Specified by:
setFiredAtInstantin interfacecom.github.philippheuer.events4j.api.domain.IEvent
-
setServiceMediator
public void setServiceMediator(com.github.philippheuer.events4j.api.service.IServiceMediator serviceMediator)Holds a reference to the ServiceMediator to access 3rd party services- Specified by:
setServiceMediatorin interfacecom.github.philippheuer.events4j.api.domain.IEvent
-
equals
public boolean equals(java.lang.Object o)- Overrides:
equalsin classjava.lang.Object
-
canEqual
protected boolean canEqual(java.lang.Object other) -
hashCode
public int hashCode()- Overrides:
hashCodein classjava.lang.Object
-
toString
public java.lang.String toString()- Overrides:
toStringin classjava.lang.Object
-