public static enum WorldClockProtocol.Continent extends java.lang.Enum<WorldClockProtocol.Continent>
io.netty.example.worldclock.Continent
枚举常量和说明 |
---|
AFRICA
AFRICA = 0; |
AMERICA
AMERICA = 1; |
ANTARCTICA
ANTARCTICA = 2; |
ARCTIC
ARCTIC = 3; |
ASIA
ASIA = 4; |
ATLANTIC
ATLANTIC = 5; |
AUSTRALIA
AUSTRALIA = 6; |
EUROPE
EUROPE = 7; |
INDIAN
INDIAN = 8; |
MIDEAST
MIDEAST = 9; |
PACIFIC
PACIFIC = 10; |
限定符和类型 | 字段和说明 |
---|---|
static int |
AFRICA_VALUE
AFRICA = 0; |
static int |
AMERICA_VALUE
AMERICA = 1; |
static int |
ANTARCTICA_VALUE
ANTARCTICA = 2; |
static int |
ARCTIC_VALUE
ARCTIC = 3; |
static int |
ASIA_VALUE
ASIA = 4; |
static int |
ATLANTIC_VALUE
ATLANTIC = 5; |
static int |
AUSTRALIA_VALUE
AUSTRALIA = 6; |
static int |
EUROPE_VALUE
EUROPE = 7; |
static int |
INDIAN_VALUE
INDIAN = 8; |
static int |
MIDEAST_VALUE
MIDEAST = 9; |
static int |
PACIFIC_VALUE
PACIFIC = 10; |
限定符和类型 | 方法和说明 |
---|---|
static com.google.protobuf.Descriptors.EnumDescriptor |
getDescriptor() |
com.google.protobuf.Descriptors.EnumDescriptor |
getDescriptorForType() |
int |
getNumber() |
com.google.protobuf.Descriptors.EnumValueDescriptor |
getValueDescriptor() |
static |
internalGetValueMap() |
static WorldClockProtocol.Continent |
valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) |
static WorldClockProtocol.Continent |
valueOf(int value) |
static WorldClockProtocol.Continent |
valueOf(java.lang.String name)
返回带有指定名称的该类型的枚举常量。
|
static WorldClockProtocol.Continent[] |
values()
按照声明该枚举类型的常量的顺序, 返回
包含这些常量的数组。
|
public static final WorldClockProtocol.Continent AFRICA
AFRICA = 0;
public static final WorldClockProtocol.Continent AMERICA
AMERICA = 1;
public static final WorldClockProtocol.Continent ANTARCTICA
ANTARCTICA = 2;
public static final WorldClockProtocol.Continent ARCTIC
ARCTIC = 3;
public static final WorldClockProtocol.Continent ASIA
ASIA = 4;
public static final WorldClockProtocol.Continent ATLANTIC
ATLANTIC = 5;
public static final WorldClockProtocol.Continent AUSTRALIA
AUSTRALIA = 6;
public static final WorldClockProtocol.Continent EUROPE
EUROPE = 7;
public static final WorldClockProtocol.Continent INDIAN
INDIAN = 8;
public static final WorldClockProtocol.Continent MIDEAST
MIDEAST = 9;
public static final WorldClockProtocol.Continent PACIFIC
PACIFIC = 10;
public static final int AFRICA_VALUE
AFRICA = 0;
public static final int AMERICA_VALUE
AMERICA = 1;
public static final int ANTARCTICA_VALUE
ANTARCTICA = 2;
public static final int ARCTIC_VALUE
ARCTIC = 3;
public static final int ASIA_VALUE
ASIA = 4;
public static final int ATLANTIC_VALUE
ATLANTIC = 5;
public static final int AUSTRALIA_VALUE
AUSTRALIA = 6;
public static final int EUROPE_VALUE
EUROPE = 7;
public static final int INDIAN_VALUE
INDIAN = 8;
public static final int MIDEAST_VALUE
MIDEAST = 9;
public static final int PACIFIC_VALUE
PACIFIC = 10;
public static WorldClockProtocol.Continent[] values()
for (WorldClockProtocol.Continent c : WorldClockProtocol.Continent.values()) System.out.println(c);
public static WorldClockProtocol.Continent valueOf(java.lang.String name)
name
- 要返回的枚举常量的名称。java.lang.IllegalArgumentException
- 如果该枚举类型没有带有指定名称的常量,
则抛出 IllegalArgumentExceptionjava.lang.NullPointerException
- 如果参数为空值, 则抛出 NullPointerExceptionpublic final int getNumber()
public static WorldClockProtocol.Continent valueOf(int value)
public staticinternalGetValueMap()
public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor()
public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType()
public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor()
public static WorldClockProtocol.Continent valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc)