Class DurationHelper


  • public class DurationHelper
    extends java.lang.Object
    helper class for parsing ISO8601 duration format (also recurring) and computing next timer date
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static java.lang.String PnW_PATTERN  
    • Constructor Summary

      Constructors 
      Constructor Description
      DurationHelper​(java.lang.String expressions)  
      DurationHelper​(java.lang.String expressions, java.util.Date startDate)  
    • Constructor Detail

      • DurationHelper

        public DurationHelper​(java.lang.String expressions)
                       throws java.lang.Exception
        Throws:
        java.lang.Exception
      • DurationHelper

        public DurationHelper​(java.lang.String expressions,
                              java.util.Date startDate)
                       throws java.lang.Exception
        Throws:
        java.lang.Exception
    • Method Detail

      • getDateAfter

        public java.util.Date getDateAfter()
      • getDateAfter

        public java.util.Date getDateAfter​(java.util.Date date)
      • getTimes

        public int getTimes()
      • isRepeat

        public boolean isRepeat()
      • setRepeatOffset

        public void setRepeatOffset​(long repeatOffset)