Package org.reploop.parser.thrift.tree
Enum PrimitiveType
- java.lang.Object
-
- java.lang.Enum<PrimitiveType>
-
- org.reploop.parser.thrift.tree.PrimitiveType
-
- All Implemented Interfaces:
Serializable,Comparable<PrimitiveType>
public enum PrimitiveType extends Enum<PrimitiveType>
What's this about?- Since:
- 2015-06-05 18
- Author:
- George Cao(georgecao@outlook.com)
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static PrimitiveTypevalueOf(String name)Returns the enum constant of this type with the specified name.static PrimitiveType[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
STRING
public static final PrimitiveType STRING
-
BINARY
public static final PrimitiveType BINARY
-
SLIST
public static final PrimitiveType SLIST
-
BOOL
public static final PrimitiveType BOOL
-
BYTE
public static final PrimitiveType BYTE
-
I16
public static final PrimitiveType I16
-
I32
public static final PrimitiveType I32
-
I64
public static final PrimitiveType I64
-
DOUBLE
public static final PrimitiveType DOUBLE
-
-
Method Detail
-
values
public static PrimitiveType[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (PrimitiveType c : PrimitiveType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static PrimitiveType valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-
-