Package org.refcodes.observer
Class PayloadEventImpl<P>
- java.lang.Object
-
- org.refcodes.observer.AbstractEvent<SRC>
-
- org.refcodes.observer.AbstractPayloadEvent<P,java.lang.Object>
-
- org.refcodes.observer.PayloadEventImpl<P>
-
- Type Parameters:
P
- The type of the payload to be carried.
- All Implemented Interfaces:
org.refcodes.mixin.PayloadAccessor<P>
,org.refcodes.mixin.SourceAccessor<java.lang.Object>
,GenericEvent<java.lang.Object>
,GenericPayloadEvent<P,java.lang.Object>
,PayloadEvent<P>
public class PayloadEventImpl<P> extends AbstractPayloadEvent<P,java.lang.Object> implements PayloadEvent<P>
Basic implementation of thePayloadEvent
interface.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.refcodes.mixin.PayloadAccessor
org.refcodes.mixin.PayloadAccessor.PayloadBuilder<P extends java.lang.Object,B extends org.refcodes.mixin.PayloadAccessor.PayloadBuilder<P,B>>, org.refcodes.mixin.PayloadAccessor.PayloadMutator<P extends java.lang.Object>, org.refcodes.mixin.PayloadAccessor.PayloadProperty<P extends java.lang.Object>
-
-
Constructor Summary
Constructors Constructor Description PayloadEventImpl(P aPayload, java.lang.Object aSource)
Constructs an event with the given source.
-
Method Summary
-
Methods inherited from class org.refcodes.observer.AbstractEvent
getSource
-
Methods inherited from class org.refcodes.observer.AbstractPayloadEvent
getPayload
-
-
-
-
Constructor Detail
-
PayloadEventImpl
public PayloadEventImpl(P aPayload, java.lang.Object aSource)
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.
-
-