Package io.protostuff.compiler.model
Enum DynamicMessage.Value.Type
- java.lang.Object
-
- java.lang.Enum<DynamicMessage.Value.Type>
-
- io.protostuff.compiler.model.DynamicMessage.Value.Type
-
- All Implemented Interfaces:
Serializable,Comparable<DynamicMessage.Value.Type>
- Enclosing class:
- DynamicMessage.Value
public static enum DynamicMessage.Value.Type extends Enum<DynamicMessage.Value.Type>
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description StringtoString()static DynamicMessage.Value.TypevalueOf(String name)Returns the enum constant of this type with the specified name.static DynamicMessage.Value.Type[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
BOOLEAN
public static final DynamicMessage.Value.Type BOOLEAN
-
INTEGER
public static final DynamicMessage.Value.Type INTEGER
-
FLOAT
public static final DynamicMessage.Value.Type FLOAT
-
STRING
public static final DynamicMessage.Value.Type STRING
-
ENUM
public static final DynamicMessage.Value.Type ENUM
-
MESSAGE
public static final DynamicMessage.Value.Type MESSAGE
-
-
Method Detail
-
values
public static DynamicMessage.Value.Type[] 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 (DynamicMessage.Value.Type c : DynamicMessage.Value.Type.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static DynamicMessage.Value.Type 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
-
toString
public String toString()
- Overrides:
toStringin classEnum<DynamicMessage.Value.Type>
-
-