Package org.opennms.netmgt.jasper.helper
Enum TimeRange
- java.lang.Object
-
- java.lang.Enum<TimeRange>
-
- org.opennms.netmgt.jasper.helper.TimeRange
-
-
Enum Constant Summary
Enum Constants Enum Constant Description LAST_MONTHLAST_SEVEN_DAYSLAST_YEARTHIS_MONTHTHIS_YEAR
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description java.util.DategetEndDate()static java.util.DategetEndDate(java.lang.String range)getEndDateabstract java.util.DategetStartDate()static java.util.DategetStartDate(java.lang.String range)getStartDatestatic TimeRangevalueOf(java.lang.String name)Returns the enum constant of this type with the specified name.static TimeRange[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Method Detail
-
values
public static TimeRange[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (TimeRange c : TimeRange.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static TimeRange valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
java.lang.IllegalArgumentException- if this enum type has no constant with the specified namejava.lang.NullPointerException- if the argument is null
-
getEndDate
public java.util.Date getEndDate()
-
getStartDate
public abstract java.util.Date getStartDate()
-
getStartDate
public static java.util.Date getStartDate(java.lang.String range)
getStartDate
- Parameters:
range- aStringobject- Returns:
- a
Timestampobject
-
getEndDate
public static java.util.Date getEndDate(java.lang.String range)
getEndDate
- Parameters:
range- aStringobject- Returns:
- a
Timestampobject
-
-