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