Class IntervalType
- java.lang.Object
-
- com.orchestranetworks.addon.dqid.common.IntervalType
-
public final class IntervalType extends java.lang.Object
Represents popular interval formats.- Since:
- 1.4.0
-
-
Field Summary
Fields Modifier and Type Field Description static IntervalType
DAY_HOUR
static IntervalType
DAY_HOUR_MINUTE
static IntervalType
HOUR_MINUTE
static IntervalType
HOUR_MINUTE_SECOND
static IntervalType
MINUTE_SECOND
static IntervalType
MONTH_DAY
static IntervalType
MONTH_WEEK_DAY
static IntervalType
WEEK_DAY
static IntervalType
WEEK_DAY_HOUR
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(java.lang.Object obj)
java.lang.String
getCode()
Returns the code of this interval type.com.onwbp.base.text.UserMessage
getLabel()
Returns the localized label of this interval type.int
hashCode()
boolean
isDayHour()
Returnstrue
if this has 'day - hour' format.boolean
isDayHourMinute()
Returnstrue
if this has 'day - hour - minute' format.boolean
isHourMinute()
Returnstrue
if this has 'hour - minute' format.boolean
isHourMinuteSecond()
Returnstrue
if this has 'hour - minute - second' format.boolean
isMinuteSecond()
Returnstrue
if this has 'minute - second' format.boolean
isMonthDay()
Returnstrue
if this has 'month - day' format.boolean
isMonthWeekDay()
Returnstrue
if this has 'month - week - day' format.boolean
isWeekDay()
Returnstrue
if this has 'week - day' format.boolean
isWeekDayHour()
Returnstrue
if this has 'week - day - hour' format.java.lang.String
toString()
-
-
-
Field Detail
-
MONTH_DAY
public static final IntervalType MONTH_DAY
-
MONTH_WEEK_DAY
public static final IntervalType MONTH_WEEK_DAY
-
WEEK_DAY
public static final IntervalType WEEK_DAY
-
WEEK_DAY_HOUR
public static final IntervalType WEEK_DAY_HOUR
-
DAY_HOUR
public static final IntervalType DAY_HOUR
-
DAY_HOUR_MINUTE
public static final IntervalType DAY_HOUR_MINUTE
-
HOUR_MINUTE_SECOND
public static final IntervalType HOUR_MINUTE_SECOND
-
HOUR_MINUTE
public static final IntervalType HOUR_MINUTE
-
MINUTE_SECOND
public static final IntervalType MINUTE_SECOND
-
-
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()
Returnstrue
if this has 'month - day' format.
-
isMonthWeekDay
public boolean isMonthWeekDay()
Returnstrue
if this has 'month - week - day' format.
-
isWeekDay
public boolean isWeekDay()
Returnstrue
if this has 'week - day' format.
-
isWeekDayHour
public boolean isWeekDayHour()
Returnstrue
if this has 'week - day - hour' format.
-
isDayHour
public boolean isDayHour()
Returnstrue
if this has 'day - hour' format.
-
isDayHourMinute
public boolean isDayHourMinute()
Returnstrue
if this has 'day - hour - minute' format.
-
isHourMinuteSecond
public boolean isHourMinuteSecond()
Returnstrue
if this has 'hour - minute - second' format.- Since:
- 2.2.0
-
isHourMinute
public boolean isHourMinute()
Returnstrue
if this has 'hour - minute' format.- Since:
- 2.2.0
-
isMinuteSecond
public boolean isMinuteSecond()
Returnstrue
if this has 'minute - second' format.- Since:
- 2.2.0
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equals
in classjava.lang.Object
-
-