public enum NowImplementation extends java.lang.Enum<NowImplementation>
CNowOp
for details on using these valuesEnum Constant and Description |
---|
IMPL_SYSTEM
call System.currentTimeMillis() directly
|
IMPL_THREAD
use a background thread that only checks every few milliseconds
|
IMPL_TIME_SERVICE
use the current time service from the module runtime context
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getLegacyName() |
int |
getValue() |
boolean |
isLegacyNameEqual(java.lang.String legacyName) |
static NowImplementation |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static NowImplementation[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final NowImplementation IMPL_SYSTEM
public static final NowImplementation IMPL_THREAD
public static final NowImplementation IMPL_TIME_SERVICE
public static NowImplementation[] values()
for (NowImplementation c : NowImplementation.values()) System.out.println(c);
public static NowImplementation 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 namejava.lang.NullPointerException
- if the argument is nullpublic int getValue()
public java.lang.String getLegacyName()
public boolean isLegacyNameEqual(java.lang.String legacyName)