public enum BackupStatusEnum extends Enum<BackupStatusEnum> implements BaseEnum
BaseEnum.Cache
Enum Constant and Description |
---|
DEFAULT
状态{0: 默认; 1: 成功; 2: 失败}
|
FAILED |
SUCCESS |
Modifier and Type | Method and Description |
---|---|
int |
getCode()
枚举的code
|
String |
getDesc()
枚举的描述
|
static BackupStatusEnum |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static BackupStatusEnum[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
getDescByCode, getEnum, getEnum, getMap, toJSONArray, toJSONObject
public static final BackupStatusEnum DEFAULT
public static final BackupStatusEnum SUCCESS
public static final BackupStatusEnum FAILED
public static BackupStatusEnum[] values()
for (BackupStatusEnum c : BackupStatusEnum.values()) System.out.println(c);
public static BackupStatusEnum 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()
BaseEnum
Copyright © 2017–2022. All rights reserved.