public enum TimeRange extends Enum<TimeRange>
Enum Constant and Description |
---|
LAST_MONTH |
LAST_SEVEN_DAYS |
LAST_YEAR |
THIS_MONTH |
THIS_YEAR |
Modifier and Type | Method and Description |
---|---|
Date |
getEndDate() |
static Date |
getEndDate(String range)
getEndDate
|
abstract Date |
getStartDate() |
static Date |
getStartDate(String range)
getStartDate
|
static TimeRange |
valueOf(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.
|
public static final TimeRange LAST_SEVEN_DAYS
public static final TimeRange LAST_MONTH
public static final TimeRange LAST_YEAR
public static final TimeRange THIS_MONTH
public static final TimeRange THIS_YEAR
public static TimeRange[] values()
for (TimeRange c : TimeRange.values()) System.out.println(c);
public static TimeRange valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic Date getEndDate()
public abstract Date getStartDate()
Copyright © 2021. All rights reserved.