Annotation Type State


@Retention(RUNTIME) @Target(FIELD) public @interface State
Annotation used to define the states in a state machine. Only applies to static final String fields. The value of the string will be used as state id.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final String
    The intial state
  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
    Sets the id of the parent state.
  • Field Details

  • Element Details

    • value

      String value
      Sets the id of the parent state. The default is no parent.
      Returns:
      the id of the parent state
      Default:
      "__root__"