public static enum UnittestProto.TestEnumWithDupValue extends Enum<UnittestProto.TestEnumWithDupValue>
Modifier and Type | Method and Description |
---|---|
int |
getNumber() |
String |
toString() |
static UnittestProto.TestEnumWithDupValue |
valueOf(int value) |
static UnittestProto.TestEnumWithDupValue |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static UnittestProto.TestEnumWithDupValue[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final UnittestProto.TestEnumWithDupValue FOO1
public static final UnittestProto.TestEnumWithDupValue BAR1
public static final UnittestProto.TestEnumWithDupValue BAZ
public static final UnittestProto.TestEnumWithDupValue FOO2
public static final UnittestProto.TestEnumWithDupValue BAR2
public static UnittestProto.TestEnumWithDupValue[] values()
for (UnittestProto.TestEnumWithDupValue c : UnittestProto.TestEnumWithDupValue.values()) System.out.println(c);
public static UnittestProto.TestEnumWithDupValue 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 final int getNumber()
public final String toString()
toString
in class Enum<UnittestProto.TestEnumWithDupValue>
public static UnittestProto.TestEnumWithDupValue valueOf(int value)
Copyright © 2016. All rights reserved.