public enum TaskState extends Enum<TaskState>
枚举常量和说明 |
---|
commit |
connectionError |
networkError |
networkTimeOut |
rollback |
public static final TaskState rollback
public static final TaskState commit
public static final TaskState networkError
public static final TaskState networkTimeOut
public static final TaskState connectionError
public static TaskState[] values()
for (TaskState c : TaskState.values()) System.out.println(c);
public static TaskState valueOf(String name)
name
- 要返回的枚举常量的名称。IllegalArgumentException
- 如果该枚举类型没有带有指定名称的常量NullPointerException
- 如果参数为空值public int getCode()
Copyright © 2020. All rights reserved.