public enum TimeInterval extends java.lang.Enum<TimeInterval>
GraphDataSet and
BudgetReport constants:
public static final char DAY_INTERVAL = 'd'; public static final char WEEK_INTERVAL = 'w'; public static final char MONTH_INTERVAL = 'm'; public static final char YEAR_INTERVAL = 'y'; private static final int GROUP_BY_NONE = 0; private static final int GROUP_BY_WEEK = 1; private static final int GROUP_BY_MONTH = 2; private static final int GROUP_BY_QTR = 3; private static final int GROUP_BY_YEAR = 4;
| Modifier and Type | Field and Description |
|---|---|
static TimeInterval |
DEFAULT
The default is a monthly interval because that is the most popular.
|
| Modifier and Type | Method and Description |
|---|---|
static TimeInterval |
fromChar(char identifier)
Derive a time interval from a character, probably stored in settings.
|
java.lang.String |
getConfigKey() |
java.lang.String |
getDivisorResourceKey() |
java.lang.String |
getGroupResourceKey() |
char |
getId() |
java.lang.String |
getSubtotalResourceKey() |
int |
getValue() |
static TimeInterval |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static TimeInterval[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final TimeInterval NONE
public static final TimeInterval DAY
public static final TimeInterval WEEK
public static final TimeInterval MONTH
public static final TimeInterval QUARTER
public static final TimeInterval YEAR
public static final TimeInterval DEFAULT
public static TimeInterval[] values()
for (TimeInterval c : TimeInterval.values()) System.out.println(c);
public static TimeInterval 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 char getId()
public int getValue()
public java.lang.String getConfigKey()
getId().public java.lang.String getGroupResourceKey()
public java.lang.String getSubtotalResourceKey()
public java.lang.String getDivisorResourceKey()
public static TimeInterval fromChar(char identifier)
DEFAULT interval.identifier - The character to convert to a time interval.