Enum Class SFSDataType

java.lang.Object
java.lang.Enum<SFSDataType>
com.smartfoxserver.entities.data.SFSDataType
All Implemented Interfaces:
Serializable, Comparable<SFSDataType>, Constable

public enum SFSDataType extends Enum<SFSDataType>
  • Enum Constant Details

  • Method Details

    • values

      public static SFSDataType[] 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 SFSDataType 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
    • fromTypeId

      public static SFSDataType fromTypeId(int typeId)
      Get the SFSDataType enum from its type id
      Parameters:
      typeId - the type id
      Returns:
      the corresponding SFSDataType
    • getTypeID

      public int getTypeID()