public enum ServiceMode extends java.lang.Enum<ServiceMode>
Enum Constant and Description |
---|
Automatic
Automatically use local or remote (default)
|
Local
Local server only
|
Remote
Remote server only
|
Modifier and Type | Method and Description |
---|---|
int |
getValue() |
static ServiceMode |
valueOf(int intValue) |
static ServiceMode |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static ServiceMode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ServiceMode Automatic
public static final ServiceMode Local
public static final ServiceMode Remote
public static ServiceMode[] values()
for (ServiceMode c : ServiceMode.values()) System.out.println(c);
public static ServiceMode 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 static ServiceMode valueOf(int intValue)
public int getValue()