public enum Time extends Enum<Time>
Modifier and Type | Method and Description |
---|---|
static long |
currentTimeMillis() |
static void |
parkNanos(long nanos) |
static long |
tickTime() |
static Time |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Time[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
static void |
wait(Object o,
long waitTimeMS) |
public static Time[] values()
for (Time c : Time.values()) System.out.println(c);
public static Time 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 static long currentTimeMillis()
public static long tickTime()
public static void wait(Object o, long waitTimeMS) throws InterruptedException
InterruptedException
public static void parkNanos(long nanos)
Copyright © 2015. All rights reserved.