Class IntervalType


  • public final class IntervalType
    extends java.lang.Object
    Represents popular interval formats.
    Since:
    1.4.0
    • Method Detail

      • getLabel

        public com.onwbp.base.text.UserMessage getLabel()
        Returns the localized label of this interval type.
      • getCode

        public java.lang.String getCode()
        Returns the code of this interval type.
      • isMonthDay

        public boolean isMonthDay()
        Returns true if this has 'month - day' format.
      • isMonthWeekDay

        public boolean isMonthWeekDay()
        Returns true if this has 'month - week - day' format.
      • isWeekDay

        public boolean isWeekDay()
        Returns true if this has 'week - day' format.
      • isWeekDayHour

        public boolean isWeekDayHour()
        Returns true if this has 'week - day - hour' format.
      • isDayHour

        public boolean isDayHour()
        Returns true if this has 'day - hour' format.
      • isDayHourMinute

        public boolean isDayHourMinute()
        Returns true if this has 'day - hour - minute' format.
      • isHourMinuteSecond

        public boolean isHourMinuteSecond()
        Returns true if this has 'hour - minute - second' format.
        Since:
        2.2.0
      • isHourMinute

        public boolean isHourMinute()
        Returns true if this has 'hour - minute' format.
        Since:
        2.2.0
      • isMinuteSecond

        public boolean isMinuteSecond()
        Returns true if this has 'minute - second' format.
        Since:
        2.2.0
      • toString

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

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

        public boolean equals​(java.lang.Object obj)
        Overrides:
        equals in class java.lang.Object