An observable Finite State Machine for Java.
Useful when you have a number of distinct states, with some optional state transitions, and associated actions.
For example, you may have states ON_CALL and OFF_CALL, with triggers START_CALL and END_CALL, with an assocoated action to print the call length when END_CALL is received.
from The Android Arsenal
No comments:
Post a Comment