Class EventImpl<T>

  • All Implemented Interfaces:
    Event<T>

    public class EventImpl<T>
    extends Object
    implements Event<T>
    A default implementation for Event
    • Constructor Detail

      • EventImpl

        public EventImpl​(long timestamp,
                         T object)
    • Method Detail

      • getTimestamp

        public long getTimestamp()
        Description copied from interface: Event
        Returns the timestamp from this event
        Specified by:
        getTimestamp in interface Event<T>
        Returns:
      • getObject

        public T getObject()
        Description copied from interface: Event
        Returns this event's actual object
        Specified by:
        getObject in interface Event<T>
        Returns:
      • getDate

        public Date getDate()
        Description copied from interface: Event
        This is the same as getTimestamp, but returns a Date object instead
        Specified by:
        getDate in interface Event<T>
        Returns: