public enum IntervalPresetType extends java.lang.Enum<IntervalPresetType>
Enum Constant and Description |
---|
Custom |
Day |
Hour |
Minute |
Month |
Quarter |
Week |
Year |
Modifier and Type | Method and Description |
---|---|
org.joda.time.Period |
getPeriod() |
static IntervalPresetType |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static IntervalPresetType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
static IntervalPresetType[] |
valuesShorterThan(org.joda.time.Period period) |
public static final IntervalPresetType Year
public static final IntervalPresetType Quarter
public static final IntervalPresetType Month
public static final IntervalPresetType Week
public static final IntervalPresetType Day
public static final IntervalPresetType Hour
public static final IntervalPresetType Minute
public static final IntervalPresetType Custom
public static IntervalPresetType[] values()
for (IntervalPresetType c : IntervalPresetType.values()) System.out.println(c);
public static IntervalPresetType 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 static IntervalPresetType[] valuesShorterThan(org.joda.time.Period period)
public org.joda.time.Period getPeriod()