public interface EntityStateMachine<T,Id> extends ObjectState<T>
| Modifier and Type | Method and Description |
|---|---|
Clock |
clock() |
Class<T> |
cls() |
Optional<Event<? super T>> |
event() |
Id |
id() |
Optional<? extends EntityState<T>> |
previousState() |
EntityStateMachine<T,Id> |
replaying() |
EntityStateMachine<T,Id> |
signal(Event<? super T> event) |
List<Signal<?,?>> |
signalsToOther() |
List<Event<? super T>> |
signalsToSelf() |
boolean |
transitionOccurred() |
EntityStateMachine<T,Id> |
withClock(Clock clock) |
EntityStateMachine<T,Id> |
withPreTransition(Action3<? super EntityStateMachine<T,Id>,? super Event<? super T>,? super EntityState<T>> action) |
EntityStateMachine<T,Id> |
withSearch(Search<Id> search) |
get, stateboolean transitionOccurred()
Optional<? extends EntityState<T>> previousState()
EntityStateMachine<T,Id> signal(Event<? super T> event)
EntityStateMachine<T,Id> withSearch(Search<Id> search)
EntityStateMachine<T,Id> withClock(Clock clock)
Clock clock()
Id id()
EntityStateMachine<T,Id> replaying()
EntityStateMachine<T,Id> withPreTransition(Action3<? super EntityStateMachine<T,Id>,? super Event<? super T>,? super EntityState<T>> action)
Copyright © 2013–2020. All rights reserved.