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