public static enum LocalTimeProtocol.Continent extends java.lang.Enum<LocalTimeProtocol.Continent>
org.jboss.netty.example.localtime.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 LocalTimeProtocol.Continent |
valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) |
static LocalTimeProtocol.Continent |
valueOf(int value) |
static LocalTimeProtocol.Continent |
valueOf(java.lang.String name)
返回带有指定名称的该类型的枚举常量。
|
static LocalTimeProtocol.Continent[] |
values()
按照声明该枚举类型的常量的顺序, 返回
包含这些常量的数组。
|
public static final LocalTimeProtocol.Continent AFRICA
AFRICA = 0;
public static final LocalTimeProtocol.Continent AMERICA
AMERICA = 1;
public static final LocalTimeProtocol.Continent ANTARCTICA
ANTARCTICA = 2;
public static final LocalTimeProtocol.Continent ARCTIC
ARCTIC = 3;
public static final LocalTimeProtocol.Continent ASIA
ASIA = 4;
public static final LocalTimeProtocol.Continent ATLANTIC
ATLANTIC = 5;
public static final LocalTimeProtocol.Continent AUSTRALIA
AUSTRALIA = 6;
public static final LocalTimeProtocol.Continent EUROPE
EUROPE = 7;
public static final LocalTimeProtocol.Continent INDIAN
INDIAN = 8;
public static final LocalTimeProtocol.Continent MIDEAST
MIDEAST = 9;
public static final LocalTimeProtocol.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 LocalTimeProtocol.Continent[] values()
for (LocalTimeProtocol.Continent c : LocalTimeProtocol.Continent.values()) System.out.println(c);
public static LocalTimeProtocol.Continent valueOf(java.lang.String name)
name
- 要返回的枚举常量的名称。java.lang.IllegalArgumentException
- 如果该枚举类型没有带有指定名称的常量java.lang.NullPointerException
- 如果参数为空值public final int getNumber()
public static LocalTimeProtocol.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 LocalTimeProtocol.Continent valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc)