Enum Class Definition.Type

java.lang.Object
java.lang.Enum<Definition.Type>
marauroa.common.game.Definition.Type
All Implemented Interfaces:
Serializable, Comparable<Definition.Type>, Constable
Enclosing class:
Definition

public static enum Definition.Type extends Enum<Definition.Type>
Define the possible types of an attribute or event
  • Enum Constant Details

    • NOTYPE

      public static final Definition.Type NOTYPE
      No type
    • VERY_LONG_STRING

      public static final Definition.Type VERY_LONG_STRING
      a string
    • LONG_STRING

      public static final Definition.Type LONG_STRING
      a string of up to 65536 chars long
    • STRING

      public static final Definition.Type STRING
      a string of up to 255 chars long
    • FLOAT

      public static final Definition.Type FLOAT
      an float number of 32 bits
    • INT

      public static final Definition.Type INT
      an integer of 32 bits
    • SHORT

      public static final Definition.Type SHORT
      an integer of 16 bits
    • BYTE

      public static final Definition.Type BYTE
      an integer of 8 bits
    • FLAG

      public static final Definition.Type FLAG
      an boolean attribute that either is present or not.
    • MAP

      public static final Definition.Type MAP
      a map attribute
    • LONG

      public static final Definition.Type LONG
      an integer of 64 bits
  • Method Details

    • values

      public static Definition.Type[] 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

      public static Definition.Type valueOf(String name)
      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 name
      NullPointerException - if the argument is null