public static enum ProtoFile.Syntax extends Enum<ProtoFile.Syntax>
Modifier and Type | Method and Description |
---|---|
static ProtoFile.Syntax |
get(String string) |
String |
toString() |
static ProtoFile.Syntax |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ProtoFile.Syntax[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ProtoFile.Syntax PROTO_2
public static final ProtoFile.Syntax PROTO_3
public static ProtoFile.Syntax[] values()
for (ProtoFile.Syntax c : ProtoFile.Syntax.values()) System.out.println(c);
public static ProtoFile.Syntax 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 static ProtoFile.Syntax get(String string)
public String toString()
toString
in class Enum<ProtoFile.Syntax>
Copyright © 2013–2016 Square, Inc.. All rights reserved.