Module org.refcodes.checkerboard
Package org.refcodes.checkerboard
Class StateChangedEventImpl<P extends Player<P,S>,S>
java.lang.Object
org.refcodes.checkerboard.AbstractPlayerEvent<P>
org.refcodes.checkerboard.StateChangedEventImpl<P,S>
- Type Parameters:
P
- the generic typeS
- the generic type
- All Implemented Interfaces:
PlayerEvent<P>
,StateChangedEvent<P,S>
,org.refcodes.mixin.ActionAccessor<PlayerAction>
,org.refcodes.mixin.SourceAccessor<P>
,org.refcodes.mixin.StatusAccessor<S>
,org.refcodes.observer.GenericActionEvent<PlayerAction,P>
,org.refcodes.observer.GenericEvent<P>
public class StateChangedEventImpl<P extends Player<P,S>,S> extends AbstractPlayerEvent<P> implements StateChangedEvent<P,S>
The Class StateChangedEventImpl.
-
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.SourceAccessor
org.refcodes.mixin.SourceAccessor.SourceMutator<SRC extends Object>, org.refcodes.mixin.SourceAccessor.SourceProperty<SRC extends Object>
Nested classes/interfaces inherited from interface org.refcodes.mixin.StatusAccessor
org.refcodes.mixin.StatusAccessor.StatusBuilder<S extends Object,B extends org.refcodes.mixin.StatusAccessor.StatusBuilder<S,B>>, org.refcodes.mixin.StatusAccessor.StatusMutator<S extends Object>, org.refcodes.mixin.StatusAccessor.StatusProperty<S extends Object>
-
Field Summary
Fields inherited from interface org.refcodes.checkerboard.StateChangedEvent
ACTION
-
Constructor Summary
Constructors Constructor Description StateChangedEventImpl(S aState, S aPrecedingState, P aSource)
Instantiates a new state changed event. -
Method Summary
Methods inherited from class org.refcodes.checkerboard.AbstractPlayerEvent
getAction, getSource
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface org.refcodes.mixin.ActionAccessor
getAction
Methods inherited from interface org.refcodes.mixin.SourceAccessor
getSource
-
Constructor Details
-
StateChangedEventImpl
Instantiates a new state changed event.- Parameters:
aState
- the stateaPrecedingState
- the preceding stateaSource
- The according source (origin).
-
-
Method Details
-
getStatus
-
getPrecedingState
Gets the preceding state.- Specified by:
getPrecedingState
in interfaceStateChangedEvent<P extends Player<P,S>,S>
- Returns:
- the preceding state
-
toString
-