Class AbstractEvent<SRC>

java.lang.Object
org.refcodes.observer.AbstractEvent<SRC>
Type Parameters:
SRC - the generic type for the event's source.
All Implemented Interfaces:
org.refcodes.mixin.SourceAccessor<SRC>, GenericEvent<SRC>
Direct Known Subclasses:
AbstractActionEvent, AbstractMetaDataEvent, AbstractPayloadEvent, EventImpl, SubscribeEventImpl, UnsubscribeEventImpl

public abstract class AbstractEvent<SRC> extends Object implements GenericEvent<SRC>
Basic implementation of the GenericEvent.
  • Nested Class Summary

    Nested classes/interfaces inherited from interface org.refcodes.mixin.SourceAccessor

    org.refcodes.mixin.SourceAccessor.SourceMutator<SRC extends Object>, org.refcodes.mixin.SourceAccessor.SourceProperty<SRC extends Object>
  • Constructor Summary

    Constructors
    Constructor
    Description
    AbstractEvent(SRC aSource)
    Constructs an event with the given source.
  • Method Summary

    Modifier and Type
    Method
    Description

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • AbstractEvent

      public AbstractEvent(SRC aSource)
      Constructs an event with the given source.
      Parameters:
      aSource - The source from which this event originated.
  • Method Details

    • getSource

      public SRC getSource()
      Specified by:
      getSource in interface org.refcodes.mixin.SourceAccessor<SRC>