public enum RelativeTime extends Enum<RelativeTime>
RelativeTime class.
Enum Constant and Description |
---|
LASTHOUR |
LASTSEVENDAYS |
LASTTHIRTYONEDAYS |
SLIDING4HOURS |
SLIDING8HOURS |
SLIDINGDAY |
SLIDINGHOUR |
THISYEAR |
TODAY |
YESTERDAY |
Modifier and Type | Method and Description |
---|---|
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
|
protected TimeZone |
getTimeZone() |
protected TimeKeeper |
myTimeKeeper() |
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.
|
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
public static final RelativeTime SLIDINGHOUR
public static final RelativeTime SLIDING4HOURS
public static final RelativeTime SLIDING8HOURS
public static final RelativeTime SLIDINGDAY
public static final RelativeTime TODAY
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 nameNullPointerException
- if the argument is nullprotected Date getStartDate(int offset)
getStartDate
offset
- a int.Date
object.public TimeKeeper getTimeKeeper()
getTimeKeeper
TimeKeeper
object.public void setTimeKeeper(TimeKeeper timeKeeper)
setTimeKeeper
timeKeeper
- a TimeKeeper
object.protected long getCurrentTime()
getCurrentTime
protected TimeZone getTimeZone()
protected TimeKeeper myTimeKeeper()
Copyright © 2021. All rights reserved.