public enum StateType extends Enum<StateType>
| Enum Constant and Description |
|---|
COMPLETED
完成(通过)
|
TERMINATED
终止(取消)
|
UNKNOWN
未知
|
WAITING
等待
|
| Modifier and Type | Method and Description |
|---|---|
static StateType |
codeOf(int code)
根据代码构建
|
int |
getCode() |
static StateType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static StateType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final StateType UNKNOWN
public static final StateType WAITING
public static final StateType COMPLETED
public static final StateType TERMINATED
public static StateType[] values()
for (StateType c : StateType.values()) System.out.println(c);
public static StateType 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 int getCode()
public static StateType codeOf(int code)
Copyright © 2025. All rights reserved.