public enum PeriodType extends java.lang.Enum<PeriodType>
| 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 WEEK
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()