public enum Operation extends Enum<Operation>
| Enum Constant and Description |
|---|
BACK
后退(撤回)
|
BACK_JUMP
跳转后退
|
FORWARD
前进(通过)
|
FORWARD_JUMP
跳转前进
|
RESTART
重新开始
|
TERMINATED
终止(取消)
|
UNKNOWN
未知
|
| Modifier and Type | Method and Description |
|---|---|
static Operation |
codeOf(int code)
根据代码构建
|
int |
getCode() |
static Operation |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Operation[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Operation UNKNOWN
public static final Operation BACK
public static final Operation BACK_JUMP
public static final Operation FORWARD
public static final Operation FORWARD_JUMP
public static final Operation TERMINATED
public static final Operation RESTART
public static Operation[] values()
for (Operation c : Operation.values()) System.out.println(c);
public static Operation 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 Operation codeOf(int code)
Copyright © 2025. All rights reserved.