public enum BackupTypeEnum extends Enum<BackupTypeEnum> implements BaseEnum
BaseEnum.Cache
Enum Constant and Description |
---|
ALL
备份类型{0: 全量, 1: 部分}
|
AUTO |
IMPORT |
PART |
Modifier and Type | Method and Description |
---|---|
int |
getCode()
枚举的code
|
String |
getDesc()
枚举的描述
|
static BackupTypeEnum |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static BackupTypeEnum[] |
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 BackupTypeEnum ALL
public static final BackupTypeEnum PART
public static final BackupTypeEnum IMPORT
public static final BackupTypeEnum AUTO
public static BackupTypeEnum[] values()
for (BackupTypeEnum c : BackupTypeEnum.values()) System.out.println(c);
public static BackupTypeEnum 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.