Class PrayerToggleGuard.Toggle

java.lang.Object
privbot.mechanics.PrayerToggleGuard.Toggle
Enclosing class:
PrayerToggleGuard

public static final class PrayerToggleGuard.Toggle extends Object
One unconfirmed toggle: the direction asked for and when it was sent. Immutable value; keep one per prayer.
  • Constructor Details

    • Toggle

      public Toggle(boolean enabled, long atMs)
      Parameters:
      enabled - true when the toggle asked to turn the prayer on
      atMs - when it was sent, in milliseconds
  • Method Details

    • enabled

      public boolean enabled()
      Returns:
      true when the toggle asked to turn the prayer on
    • atMs

      public long atMs()
      Returns:
      when it was sent, in milliseconds
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

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

      public String toString()
      Overrides:
      toString in class Object