Class AbstractPayloadActionEvent<A,P,SRC>

java.lang.Object
org.refcodes.observer.AbstractEvent<SRC>
org.refcodes.observer.AbstractActionEvent<A,SRC>
org.refcodes.observer.AbstractPayloadActionEvent<A,P,SRC>
Type Parameters:
A - The type of the action stored in the event.
P - The type of the payload to be carried.
SRC - The type of the source in question.
All Implemented Interfaces:
org.refcodes.mixin.ActionAccessor<A>, org.refcodes.mixin.PayloadAccessor<P>, org.refcodes.mixin.SourceAccessor<SRC>, GenericActionEvent<A,SRC>, GenericActionPayloadEvent<A,P,SRC>, GenericEvent<SRC>, GenericPayloadEvent<P,SRC>
Direct Known Subclasses:
PayloadActionEventImpl

public abstract class AbstractPayloadActionEvent<A,P,SRC> extends AbstractActionEvent<A,SRC> implements GenericActionPayloadEvent<A,P,SRC>
Basic implementation of the GenericActionPayloadEvent.
  • Nested Class Summary

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

    org.refcodes.mixin.ActionAccessor.ActionBuilder<A extends Object,B extends org.refcodes.mixin.ActionAccessor.ActionBuilder<A,B>>, org.refcodes.mixin.ActionAccessor.ActionMutator<A extends Object>, org.refcodes.mixin.ActionAccessor.ActionProperty<A extends Object>

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

    org.refcodes.mixin.PayloadAccessor.PayloadBuilder<P extends Object,B extends org.refcodes.mixin.PayloadAccessor.PayloadBuilder<P,B>>, org.refcodes.mixin.PayloadAccessor.PayloadMutator<P extends Object>, org.refcodes.mixin.PayloadAccessor.PayloadProperty<P extends Object>

    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>
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    protected P
     

    Fields inherited from class org.refcodes.observer.AbstractActionEvent

    _action
  • Constructor Summary

    Constructors
    Constructor
    Description
    AbstractPayloadActionEvent(A aAction, P aPayload, SRC aSource)
    Constructs an event with the given Meta-Data.
  • Method Summary

    Modifier and Type
    Method
    Description

    Methods inherited from class org.refcodes.observer.AbstractActionEvent

    getAction

    Methods inherited from class org.refcodes.observer.AbstractEvent

    getSource

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface org.refcodes.mixin.ActionAccessor

    getAction

    Methods inherited from interface org.refcodes.mixin.PayloadAccessor

    getPayloadOr

    Methods inherited from interface org.refcodes.mixin.SourceAccessor

    getSource
  • Field Details

    • _payload

      protected P _payload
  • Constructor Details

    • AbstractPayloadActionEvent

      public AbstractPayloadActionEvent(A aAction, P aPayload, SRC aSource)
      Constructs an event with the given Meta-Data.
      Parameters:
      aAction - The action which the GenericActionEvent represents.
      aPayload - The payload to be carried by the event.
      aSource - The source from which this event originated.
  • Method Details

    • getPayload

      public P getPayload()
      Specified by:
      getPayload in interface org.refcodes.mixin.PayloadAccessor<A>