|
|
|
|
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | |||||||||
java.lang.Objectjava.lang.Enum<Period.Level>
org.torweg.pulse.util.time.Period.Level
public static enum Period.Level
The known levels.
| Enum Constant Summary | |
|---|---|
END
Last hour/day, day/week, day/month or day/year - 23:59:59.999. |
|
START
First hour/day, day/week, day/month or day/year - 00:00:00.000. |
|
| Method Summary | |
|---|---|
static java.util.GregorianCalendar |
level(long millis, Period period, Period.Level level)
Takes a given reference-time-stamp in milliseconds and levels it to the start/end of the given period to either the first millisecond of the period or the last millisecond of the period according to the given level. |
static Period.Level |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. |
static Period.Level[] |
values()
Returns an array containing the constants of this enum type, in the order they're declared. |
| Methods inherited from class java.lang.Enum |
|---|
clone, compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
| Methods inherited from class java.lang.Object |
|---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
| Enum Constant Detail |
|---|
public static final Period.Level END
public static final Period.Level START
| Method Detail |
|---|
public static final Period.Level[] values()
for(Period.Level c : Period.Level.values())
System.out.println(c);
public static Period.Level 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 namepublic static java.util.GregorianCalendar level(long millis, Period period, Period.Level level)
millis - the reference-date in millisecondsperiod - the Periodlevel - Period.Level.START for levelling the GregorianCalendar down to 00:00:00.000Period.Level.END for levelling the GregorianCalendar up to 23:59:59.999GregorianCalendar for the given
reference-time-stamp and time-zone "UTC"
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | |||||||||