java.io.Serializable
, java.lang.Comparable<TimeClock.TimePeriod>
public static enum TimeClock.TimePeriod extends java.lang.Enum<TimeClock.TimePeriod>
Enum Constant | Description |
---|---|
ALLTIME |
|
DAY |
|
HOUR |
|
MONTH |
|
SEASON |
|
WEEK |
|
YEAR |
Modifier and Type | Method | Description |
---|---|---|
long |
getIncrement() |
|
long |
nextPeriod() |
|
static TimeClock.TimePeriod |
valueOf(java.lang.String name) |
Returns the enum constant of this type with the specified name.
|
static TimeClock.TimePeriod[] |
values() |
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final TimeClock.TimePeriod HOUR
public static final TimeClock.TimePeriod DAY
public static final TimeClock.TimePeriod WEEK
public static final TimeClock.TimePeriod MONTH
public static final TimeClock.TimePeriod SEASON
public static final TimeClock.TimePeriod YEAR
public static final TimeClock.TimePeriod ALLTIME
public static TimeClock.TimePeriod[] values()
for (TimeClock.TimePeriod c : TimeClock.TimePeriod.values()) System.out.println(c);
public static TimeClock.TimePeriod 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 long getIncrement()
public long nextPeriod()