public static enum TimeUnit.type extends Enum<TimeUnit.type>
| Modifier and Type | Field and Description |
|---|---|
int |
value |
| Modifier and Type | Method and Description |
|---|---|
TimeUnit.type |
intern() |
String |
toString() |
static TimeUnit.type |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static TimeUnit.type[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final TimeUnit.type SECOND
public static final TimeUnit.type MILLI
public static final TimeUnit.type MICRO
public static final TimeUnit.type NANO
public static TimeUnit.type[] values()
for (TimeUnit.type c : TimeUnit.type.values()) System.out.println(c);
public static TimeUnit.type 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 TimeUnit.type intern()
public String toString()
toString in class Enum<TimeUnit.type>Copyright © 2021. All rights reserved.