Class IntervalControlHelper.IntervalRule

  • Enclosing class:
    IntervalControlHelper

    public static class IntervalControlHelper.IntervalRule
    extends java.lang.Object
    • Constructor Summary

      Constructors 
      Constructor Description
      IntervalRule​(java.lang.String from, java.lang.String to, java.lang.String days, long delay)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected int compareTime​(int h1, int m1, int h2, int m2)  
      long getDelay()  
      boolean isTarget​(int hours, int minutes, int day)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • fromHours

        protected int fromHours
      • fromMinutes

        protected int fromMinutes
      • toHours

        protected int toHours
      • toMinutes

        protected int toMinutes
      • delay

        protected long delay
      • days

        protected int[] days
      • reverse

        protected boolean reverse
    • Constructor Detail

      • IntervalRule

        public IntervalRule​(java.lang.String from,
                            java.lang.String to,
                            java.lang.String days,
                            long delay)
    • Method Detail

      • getDelay

        public long getDelay()
      • isTarget

        public boolean isTarget​(int hours,
                                int minutes,
                                int day)
      • compareTime

        protected int compareTime​(int h1,
                                  int m1,
                                  int h2,
                                  int m2)