Class Event

    • Constructor Detail

      • Event

        public Event​(EventType type,
                     Serializable content)
        Construct a new Event, where compliance with the metadata is verified.
        Parameters:
        type - EventType; the name of the Event.
        content - Serializable; the content of the event
      • Event

        public Event​(EventType type,
                     Serializable content,
                     boolean verifyMetaData)
        Construct a new Event, with a choice to verify compliance with metadata.
        Parameters:
        type - EventType; the name of the Event.
        content - Serializable; the content of the event
        verifyMetaData - boolean; whether to verify the compliance with metadata or not
    • Method Detail

      • getContent

        public final Serializable getContent()
        Return the content (payload) of this event.
        Returns:
        Serializable; the content (payload) of this event
      • getType

        public EventType getType()
        Return the type of the event.
        Returns:
        EventType; the type of the event
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object