public static enum Utils.SyncType extends java.lang.Enum<Utils.SyncType>
Enum Constant and Description |
---|
LAMPORT_SYNC |
VECTOR_CLOCK_SYNC |
Modifier and Type | Method and Description |
---|---|
static Utils.SyncType |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static Utils.SyncType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Utils.SyncType LAMPORT_SYNC
public static final Utils.SyncType VECTOR_CLOCK_SYNC
public static Utils.SyncType[] values()
for (Utils.SyncType c : Utils.SyncType.values()) System.out.println(c);
public static Utils.SyncType 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 null