public class FilteredState extends AbstractFilteredState
State.StateBuilderstateid, name| Constructor and Description |
|---|
FilteredState(@NonNull State state)
Constructor with state
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object o) |
static FilteredState |
from(@NonNull State state)
Static factory method to decorate the state with
message filtering capabilities
|
int |
hashCode() |
AbstractNode |
merge(AbstractNode state)
Adds the filter mappings from the given
state to the current instance.
|
void |
setDispatchHandler(Function<StateContext,Status> dispatchHandler)
Sets the dispatch handler for ANY message
|
void |
setDispatchHandler(Message message,
Function<StateContext,Status> dispatchHandler)
Sets the dispatch handler for the given message
|
void |
setReceptionHandler(Function<StateContext,Status> receptionHandler)
Sets the reception handler for ANY message
|
void |
setReceptionHandler(Message message,
Function<StateContext,Status> receptionHandler)
Sets the reception handler for the given message
|
getMessageFilter, onDispatch, onReceivegetName, isFinal, setFinaladdProperty, from, getProperty, hasProperties, hasProperty, named, removeProperty, toStringgetIdpublic FilteredState(@NonNull
@NonNull State state)
state - the statepublic static FilteredState from(@NonNull @NonNull State state)
state - the state to wrappublic void setReceptionHandler(Function<StateContext,Status> receptionHandler)
setReceptionHandler in class AbstractFilteredStatereceptionHandler - the reception handlerpublic void setReceptionHandler(Message message, Function<StateContext,Status> receptionHandler)
setReceptionHandler in class AbstractFilteredStatereceptionHandler - the reception handlermessage - the messagepublic void setDispatchHandler(Function<StateContext,Status> dispatchHandler)
setDispatchHandler in class AbstractFilteredStatedispatchHandler - the dispatch handlerpublic void setDispatchHandler(Message message, Function<StateContext,Status> dispatchHandler)
setDispatchHandler in class AbstractFilteredStatedispatchHandler - the dispatch handlermessage - the messagepublic AbstractNode merge(AbstractNode state)
merge in interface Mergeable<AbstractNode>merge in class Statestate - the state to mergepublic boolean equals(Object o)
equals in class AbstractWrappedStatepublic int hashCode()
hashCode in class AbstractWrappedStateCopyright © 2019 state-machine. All rights reserved.