|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | |||||||||
java.lang.Objectjava.lang.Enum<RelativeTime>
org.opennms.netmgt.statsd.RelativeTime
public enum RelativeTime
RelativeTime class.
| Enum Constant Summary | |
|---|---|
LASTHOUR
|
|
LASTSEVENDAYS
|
|
LASTTHIRTYONEDAYS
|
|
THISYEAR
|
|
YESTERDAY
|
|
| Method Summary | |
|---|---|
protected long |
getCurrentTime()
getCurrentTime |
abstract Date |
getEnd()
getEnd |
abstract Date |
getStart()
getStart |
protected Date |
getStartDate(int offset)
getStartDate |
protected Date |
getStartOfToday()
getStartOfToday |
TimeKeeper |
getTimeKeeper()
getTimeKeeper |
void |
setTimeKeeper(TimeKeeper timeKeeper)
setTimeKeeper |
static RelativeTime |
valueOf(String name)
Returns the enum constant of this type with the specified name. |
static RelativeTime[] |
values()
Returns an array containing the constants of this enum type, in the order they are declared. |
| Methods inherited from class java.lang.Enum |
|---|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
| Methods inherited from class java.lang.Object |
|---|
getClass, notify, notifyAll, wait, wait, wait |
| Enum Constant Detail |
|---|
public static final RelativeTime THISYEAR
public static final RelativeTime LASTTHIRTYONEDAYS
public static final RelativeTime LASTSEVENDAYS
public static final RelativeTime YESTERDAY
public static final RelativeTime LASTHOUR
| Method Detail |
|---|
public static RelativeTime[] values()
for (RelativeTime c : RelativeTime.values()) System.out.println(c);
public static RelativeTime valueOf(String name)
name - the name of the enum constant to be returned.
IllegalArgumentException - if this enum type has no constant
with the specified name
NullPointerException - if the argument is nullprotected Date getStartDate(int offset)
getStartDate
offset - a int.
Date object.protected Date getStartOfToday()
getStartOfToday
Date object.public abstract Date getStart()
getStart
Date object.public abstract Date getEnd()
getEnd
Date object.public TimeKeeper getTimeKeeper()
getTimeKeeper
TimeKeeper object.public void setTimeKeeper(TimeKeeper timeKeeper)
setTimeKeeper
timeKeeper - a TimeKeeper object.protected long getCurrentTime()
getCurrentTime
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | |||||||||