public enum EnvironmentType extends Enum<EnvironmentType>
| Enum Constant and Description |
|---|
DEV
开发环境
|
PROD
生产环境
|
SANDBOX
沙箱环境
|
TEST
测试环境
|
| Modifier and Type | Method and Description |
|---|---|
static EnvironmentType |
get(String name)
根据枚举名获取枚举
|
static EnvironmentType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static EnvironmentType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final EnvironmentType PROD
public static final EnvironmentType SANDBOX
一般用于提供用户体验、第三方对接等的环境。
public static final EnvironmentType TEST
一般用于预发布环境、联调测试环境等。
public static final EnvironmentType DEV
public static EnvironmentType[] values()
for (EnvironmentType c : EnvironmentType.values()) System.out.println(c);
public static EnvironmentType 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 static EnvironmentType get(String name)
name - 枚举名Copyright © 2021–2022 EasyJ开源社区. All rights reserved.