Class AbstractEvent<SRC>

java.lang.Object
org.refcodes.observer.AbstractEvent<SRC>
Type Parameters:
SRC - The generic type of the event's source in question.
All Implemented Interfaces:
org.refcodes.mixin.SourceAccessor<SRC>, Event<SRC>
Direct Known Subclasses:
AbstractActionEvent, AbstractMetaDataEvent, SubscribeEvent, UnsubscribeEvent

public abstract class AbstractEvent<SRC> extends Object implements Event<SRC>
The AbstractEvent provides a base implementation for an Event.
  • 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>