| Enum Constant and Description |
|---|
CURRENT |
| Modifier and Type | Method and Description |
|---|---|
static int |
getCurrentProcessId()
get current process id .
|
static java.lang.String |
getCurrentProcessName()
get current process name .
|
int |
getProcessId() |
static ProcessId |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static ProcessId[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ProcessId CURRENT
public static ProcessId[] values()
for (ProcessId c : ProcessId.values()) System.out.println(c);
public static ProcessId 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 getProcessId()
public static java.lang.String getCurrentProcessName()
public static int getCurrentProcessId()