public enum AppleGateway extends Enum<AppleGateway>
| 枚举常量和说明 |
|---|
NOTIFICATION_SERVER |
| 限定符和类型 | 字段和说明 |
|---|---|
static boolean |
ENV_DEVELOPMENT
Constant
ENV_DEVELOPMENT=false |
static boolean |
ENV_PRODUCTION
Constant
ENV_PRODUCTION=true |
| 限定符和类型 | 方法和说明 |
|---|---|
String |
getDevelopmentHost()
Getter for the field
developmentHost. |
int |
getDevelopmentPort()
Getter for the field
developmentPort. |
String |
getProductionHost()
Getter for the field
productionHost. |
int |
getProductionPort()
Getter for the field
productionPort. |
static AppleGateway |
valueOf(String name)
返回带有指定名称的该类型的枚举常量。
|
static AppleGateway[] |
values()
按照声明该枚举类型的常量的顺序, 返回
包含这些常量的数组。
|
public static final AppleGateway NOTIFICATION_SERVER
public static final boolean ENV_PRODUCTION
ENV_PRODUCTION=truepublic static final boolean ENV_DEVELOPMENT
ENV_DEVELOPMENT=falsepublic static AppleGateway[] values()
for (AppleGateway c : AppleGateway.values()) System.out.println(c);
public static AppleGateway valueOf(String name)
name - 要返回的枚举常量的名称。IllegalArgumentException - 如果该枚举类型没有带有指定名称的常量NullPointerException - 如果参数为空值public String getProductionHost()
Getter for the field productionHost.
String object.public int getProductionPort()
Getter for the field productionPort.
public String getDevelopmentHost()
Getter for the field developmentHost.
String object.public int getDevelopmentPort()
Getter for the field developmentPort.
Copyright © 2015. All rights reserved.