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 boolean canEqual​(java.lang.Object other)  
    boolean equals​(java.lang.Object o)  
    java.lang.String getEventId()
    Unique event id
    java.util.Calendar getFiredAt()  
    java.time.Instant getFiredAtInstant()
    Event fired at
    com.github.philippheuer.events4j.api.service.IServiceMediator getServiceMediator()
    Holds a reference to the ServiceMediator to access 3rd party services
    int hashCode()  
    void setEventId​(java.lang.String eventId)
    Unique event id
    void setFiredAt​(java.util.Calendar calendar)  
    void setFiredAtInstant​(java.time.Instant firedAtInstant)
    Event fired at
    void setServiceMediator​(com.github.philippheuer.events4j.api.service.IServiceMediator serviceMediator)
    Holds a reference to the ServiceMediator to access 3rd party services
    java.lang.String toString()  

    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:
      getFiredAt in interface com.github.philippheuer.events4j.api.domain.IEvent
    • setFiredAt

      public void setFiredAt​(java.util.Calendar calendar)
      Specified by:
      setFiredAt in interface com.github.philippheuer.events4j.api.domain.IEvent
    • getEventId

      public java.lang.String getEventId()
      Unique event id
      Specified by:
      getEventId in interface com.github.philippheuer.events4j.api.domain.IEvent
    • getFiredAtInstant

      public java.time.Instant getFiredAtInstant()
      Event fired at
      Specified by:
      getFiredAtInstant in interface com.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:
      getServiceMediator in interface com.github.philippheuer.events4j.api.domain.IEvent
    • setEventId

      public void setEventId​(java.lang.String eventId)
      Unique event id
      Specified by:
      setEventId in interface com.github.philippheuer.events4j.api.domain.IEvent
    • setFiredAtInstant

      public void setFiredAtInstant​(java.time.Instant firedAtInstant)
      Event fired at
      Specified by:
      setFiredAtInstant in interface com.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:
      setServiceMediator in interface com.github.philippheuer.events4j.api.domain.IEvent
    • equals

      public boolean equals​(java.lang.Object o)
      Overrides:
      equals in class java.lang.Object
    • canEqual

      protected boolean canEqual​(java.lang.Object other)
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class java.lang.Object
    • toString

      public java.lang.String toString()
      Overrides:
      toString in class java.lang.Object