public enum PeriodType extends java.lang.Enum<PeriodType>
| Enum Constant and Description |
|---|
CURRENT_DAY
The current day
|
CURRENT_WEEK
The current week
|
DAY
A full day
|
MONTH
A full month
|
MONTH_RANGE
A month range, such as last 6 months
|
QUARTER
A quarter
|
WEEK_OF_YEAR
A week of the year
|
YEAR
A full year
|
| Modifier and Type | Method and Description |
|---|---|
Pair<java.lang.Integer,java.lang.Integer> |
getBoundaries() |
java.lang.Integer |
getLowerBoundary() |
java.lang.Integer |
getUpperBoundary() |
static PeriodType |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static PeriodType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final PeriodType YEAR
public static final PeriodType QUARTER
public static final PeriodType MONTH
public static final PeriodType MONTH_RANGE
public static final PeriodType WEEK_OF_YEAR
public static final PeriodType DAY
public static final PeriodType CURRENT_WEEK
public static final PeriodType CURRENT_DAY
public static PeriodType[] values()
for (PeriodType c : PeriodType.values()) System.out.println(c);
public static PeriodType valueOf(java.lang.String name)
name - the name of the enum constant to be returned.java.lang.IllegalArgumentException - if this enum type has no constant with the specified namejava.lang.NullPointerException - if the argument is nullpublic Pair<java.lang.Integer,java.lang.Integer> getBoundaries()
public java.lang.Integer getLowerBoundary()
public java.lang.Integer getUpperBoundary()