java.lang.Object
org.refcodes.observer.AbstractEvent<SRC>
org.refcodes.observer.AbstractPayloadEvent<P,SRC>
- Type Parameters:
P
- The type of the payload to be carried.SRC
- The type of the source in question.
- All Implemented Interfaces:
org.refcodes.mixin.PayloadAccessor<P>
,org.refcodes.mixin.SourceAccessor<SRC>
,GenericEvent<SRC>
,GenericPayloadEvent<P,
SRC>
- Direct Known Subclasses:
PayloadEventImpl
public abstract class AbstractPayloadEvent<P,SRC>
extends AbstractEvent<SRC>
implements GenericPayloadEvent<P,SRC>
Basic implementation of the
GenericPayloadEvent
.-
Nested Class Summary
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> -
Constructor Summary
ConstructorDescriptionAbstractPayloadEvent
(P aPayload, SRC aSource) Constructs an event with the given source. -
Method Summary
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.PayloadAccessor
getPayloadOr
Methods inherited from interface org.refcodes.mixin.SourceAccessor
getSource
-
Constructor Details
-
AbstractPayloadEvent
Constructs an event with the given source.- Parameters:
aPayload
- The payload to be carried by the event.aSource
- The source from which this event originated.
-
-
Method Details
-
getPayload
- Specified by:
getPayload
in interfaceorg.refcodes.mixin.PayloadAccessor<P>
-