public enum BackgroundTimeProvider extends Enum<BackgroundTimeProvider> implements TimeProvider
| Enum Constant and Description |
|---|
INSTANCE |
| Modifier and Type | Method and Description |
|---|---|
long |
currentTimeMicros() |
long |
currentTimeMillis() |
long |
currentTimeNanos() |
static BackgroundTimeProvider |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static BackgroundTimeProvider[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOfcurrentTime, getpublic static final BackgroundTimeProvider INSTANCE
public static BackgroundTimeProvider[] values()
for (BackgroundTimeProvider c : BackgroundTimeProvider.values()) System.out.println(c);
public static BackgroundTimeProvider 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 long currentTimeMillis()
currentTimeMillis in interface TimeProviderpublic long currentTimeMicros()
currentTimeMicros in interface TimeProviderpublic long currentTimeNanos()
currentTimeNanos in interface TimeProviderCopyright © 2018. All rights reserved.