|
|
|
|
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | |||||||||
java.lang.Objectjava.lang.Enum<MillisecondConstant>
org.torweg.pulse.util.time.MillisecondConstant
public enum MillisecondConstant
Defines millisecond constants for:
| Nested Class Summary | |
|---|---|
static class |
MillisecondConstant.ScrollDirection
Defines constants for scroll-direction as used by MillisecondConstant.scroll(long, MillisecondConstant, ScrollDirection)
. |
| Enum Constant Summary | |
|---|---|
DAY
A day (HOUR * 24). |
|
FIFTEEN_MINUTE
Fifteen minutes (MINUTE * 15). |
|
HALF_HOUR
A half hour (MINUTE * 30). |
|
HOUR
An hour (MINUTE * 60). |
|
MINUTE
A minute (SECOND * 60). |
|
MONTH_30
A month with 30 days (DAY * 30). |
|
SECOND
A second (1000L). |
|
WEEK
A week (DAY * 7). |
|
YEAR_365
A year with 365 days (DAY * 365). |
|
| Method Summary | |
|---|---|
long |
getValue()
Returns the value. |
static long |
scroll(long v, MillisecondConstant constant, MillisecondConstant.ScrollDirection direction)
"Scrolls" the given long-value by the given MillisecondConstant and the given
ScrollDirection. |
static MillisecondConstant |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. |
static MillisecondConstant[] |
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 MillisecondConstant SECOND
public static final MillisecondConstant MINUTE
public static final MillisecondConstant FIFTEEN_MINUTE
public static final MillisecondConstant HALF_HOUR
public static final MillisecondConstant HOUR
public static final MillisecondConstant DAY
public static final MillisecondConstant WEEK
public static final MillisecondConstant MONTH_30
public static final MillisecondConstant YEAR_365
| Method Detail |
|---|
public static final MillisecondConstant[] values()
for(MillisecondConstant c : MillisecondConstant.values())
System.out.println(c);
public static MillisecondConstant 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 long getValue()
public static long scroll(long v, MillisecondConstant constant, MillisecondConstant.ScrollDirection direction)
MillisecondConstant and the given
ScrollDirection.
v - the longconstant - the MillisecondConstantdirection - the ScrollDirection
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | |||||||||