Class ActivityState


  • public class ActivityState
    extends Object
    Definition of the activity states of a StateManager. Each activity is mutually exclusive so, for example, a StateManager cannot be inserting and then start deleting (without finishing the insert process first).
    • Field Detail

      • NONE

        public static final ActivityState NONE
        No current activity.
      • INSERTING

        public static final ActivityState INSERTING
        Inserting the object.
      • INSERTING_CALLBACKS

        public static final ActivityState INSERTING_CALLBACKS
        Running callbacks after the insert of the object.
      • DELETING

        public static final ActivityState DELETING
        Deleting the object.
    • Method Detail

      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object
      • equals

        public boolean equals​(Object o)
        Indicates whether some other object is "equal to" this one.
        Overrides:
        equals in class Object
        Parameters:
        o - the reference object with which to compare.
        Returns:
        true if this object is the same as the obj argument; false otherwise.
      • toString

        public String toString()
        Returns a string representation of the object.
        Overrides:
        toString in class Object
        Returns:
        a string representation of the object.
      • getType

        public int getType()
        Accessor for the type.
        Returns:
        Type
      • getActivityState

        public static ActivityState getActivityState​(String value)
        Obtain the ActivityState for the given name by value
        Parameters:
        value - the search name
        Returns:
        the ActivityState for the value or ActivityState.NONE if not found