Class ScheduleState


  • public final class ScheduleState
    extends java.lang.Object
    State of a schedule.
    • Method Detail

      • getNote

        public java.lang.String getNote()
        Gets the human-readable message for the schedule.
        Returns:
        the schedules note
      • isPaused

        public boolean isPaused()
        Gets a value indicating whether this schedule is paused.
        Returns:
        if the schedule is paused
      • isLimitedAction

        public boolean isLimitedAction()
        Gets a value indicating whether, if true, remaining actions will be decremented for each action taken.
        Returns:
        if the schedule has limited actions
      • getRemainingActions

        public long getRemainingActions()
        Gets the actions remaining on this schedule. Once this number hits 0, no further actions are scheduled automatically.
        Returns:
        the number of remaining actions
      • equals

        public boolean equals​(java.lang.Object o)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object