Class EventImpl

    • Constructor Detail

      • EventImpl

        public EventImpl​(EventType type,
                         Object source,
                         Object[] content)
        Constructor
        Parameters:
        type - EventType of the Event
        source - source of the event sender
        content - content array of the event
      • EventImpl

        public EventImpl​(EventType type,
                         Object source,
                         Object content)
        Constructor
        Parameters:
        type - EventType of the Event
        source - source of the event sender
        content - single entry content of the event
    • Method Detail

      • getContent

        protected Object[] getContent()
        Access to the content for derived events
        Returns:
        content object array
      • getSource

        public final Object getSource()
        returns a reference to the source of the event however the derived event decides on how to expose its source, either as a pointer or simply an id or something else.
        Specified by:
        getSource in interface Event
        Returns:
        source of the event
      • getType

        public final EventType getType()
        returns the type of the event.
        Specified by:
        getType in interface Event
        Returns:
        EbentType; the eventType of the event
      • clone

        public EventImpl clone()
        While events are id able, they cannot be cloned. and null is always returned upon calling this method
        Specified by:
        clone in interface IdAble
        Specified by:
        clone in class IdAbleImpl
        Returns:
        shallow copy of entity