public enum TimeMillis extends Enum<TimeMillis>
| Enum Constant and Description |
|---|
DAY |
HOUR |
MINUTE |
MONTH |
SECOND |
WEEK |
| Modifier and Type | Method and Description |
|---|---|
String |
key() |
long |
millis() |
static TimeMillis |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static TimeMillis[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final TimeMillis SECOND
public static final TimeMillis MINUTE
public static final TimeMillis HOUR
public static final TimeMillis DAY
public static final TimeMillis WEEK
public static final TimeMillis MONTH
public static TimeMillis[] values()
for (TimeMillis c : TimeMillis.values()) System.out.println(c);
public static TimeMillis 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 nullpublic String key()
public long millis()
Copyright © 2015. All Rights Reserved.