|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object
|
+--gumbo.util.GumboCollections.ImmutableCollection
|
+--gumbo.util.state.States.ImmutableStateSet
|
+--gumbo.interact.Interactors.ImmutableInteractorState
Immutable wrapper for a target interactor state. Identity (hashCode(), equals()) forwards to the target object, which is possible because target identity is based on contents.
| Constructor Summary | |
Interactors.ImmutableInteractorState(InteractorState target)
|
|
| Method Summary | |
InteractorState |
getInteractorState()
Gets a singleton immutable view of this state, which is the current state value, resulting from the last reset or transit. |
StateSetField.EventIn |
getStateChangeIn()
Calls change() with the received state flags (a "masked change"). |
CollectionField.EventIn |
getStateResetIn()
Calls reset() with the received state flags. |
StateSetField.EventOut |
getStateResetOut()
Sends an immutable view of this state set when the state resets, whether or not the state value changed. |
CollectionField.EventIn |
getStateSetIn()
Calls set() with the received state flags. |
StateSetField.EventOut |
getStateTransitOut()
Sends an immutable view of this state set when the state transits (as a result of set(), change(), transit()), whether or not the state value changed. |
| Methods inherited from class gumbo.util.state.States.ImmutableStateSet |
change, change, changeAll, getOldState, getStatePolicy, getStateSet, reset, set, transit |
| Methods inherited from class gumbo.util.GumboCollections.ImmutableCollection |
add, addAll, clear, contains, containsAll, equals, hashCode, isEmpty, iterator, remove, removeAll, retainAll, size, toArray, toArray, toString |
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface gumbo.util.state.StateSet |
change, change, changeAll, getOldState, getStatePolicy, getStateSet, reset, set, transit |
| Methods inherited from interface java.util.Set |
add, addAll, clear, contains, containsAll, equals, hashCode, isEmpty, iterator, remove, removeAll, retainAll, size, toArray, toArray |
| Constructor Detail |
public Interactors.ImmutableInteractorState(InteractorState target)
| Method Detail |
public InteractorState getInteractorState()
InteractorState
getInteractorState in interface InteractorStatepublic StateSetField.EventIn getStateChangeIn()
InteractorState
getStateChangeIn in interface InteractorStatepublic CollectionField.EventIn getStateResetIn()
InteractorState
getStateResetIn in interface InteractorStatepublic StateSetField.EventOut getStateResetOut()
InteractorState
getStateResetOut in interface InteractorStatepublic CollectionField.EventIn getStateSetIn()
InteractorState
getStateSetIn in interface InteractorStatepublic StateSetField.EventOut getStateTransitOut()
InteractorState
getStateTransitOut in interface InteractorState
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||