Package marauroa.common.game
Enum Class Definition.Type
- All Implemented Interfaces:
Serializable
,Comparable<Definition.Type>
,Constable
- Enclosing class:
- Definition
Define the possible types of an attribute or event
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionan integer of 8 bitsan boolean attribute that either is present or not.an float number of 32 bitsan integer of 32 bitsan integer of 64 bitsa string of up to 65536 chars longa map attributeNo typean integer of 16 bitsa string of up to 255 chars longa string -
Method Summary
Modifier and TypeMethodDescriptionstatic Definition.Type
Returns the enum constant of this class with the specified name.static Definition.Type[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
NOTYPE
No type -
VERY_LONG_STRING
a string -
LONG_STRING
a string of up to 65536 chars long -
STRING
a string of up to 255 chars long -
FLOAT
an float number of 32 bits -
INT
an integer of 32 bits -
SHORT
an integer of 16 bits -
BYTE
an integer of 8 bits -
FLAG
an boolean attribute that either is present or not. -
MAP
a map attribute -
LONG
an integer of 64 bits
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified nameNullPointerException
- if the argument is null
-