Enum SFSDataType
- java.lang.Object
-
- java.lang.Enum<SFSDataType>
-
- com.smartfoxserver.v2.entities.data.SFSDataType
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<SFSDataType>
public enum SFSDataType extends java.lang.Enum<SFSDataType>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description BOOL
BOOL_ARRAY
BYTE
BYTE_ARRAY
CLASS
DOUBLE
DOUBLE_ARRAY
FLOAT
FLOAT_ARRAY
INT
INT_ARRAY
LONG
LONG_ARRAY
NULL
SFS_ARRAY
SFS_OBJECT
SHORT
SHORT_ARRAY
TEXT
UTF_STRING
UTF_STRING_ARRAY
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static SFSDataType
fromClass(java.lang.Class clazz)
static SFSDataType
fromTypeId(int typeId)
Get the SFSDataType enum from its type idint
getTypeID()
static SFSDataType
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static SFSDataType[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
NULL
public static final SFSDataType NULL
-
BOOL
public static final SFSDataType BOOL
-
BYTE
public static final SFSDataType BYTE
-
SHORT
public static final SFSDataType SHORT
-
INT
public static final SFSDataType INT
-
LONG
public static final SFSDataType LONG
-
FLOAT
public static final SFSDataType FLOAT
-
DOUBLE
public static final SFSDataType DOUBLE
-
UTF_STRING
public static final SFSDataType UTF_STRING
-
BOOL_ARRAY
public static final SFSDataType BOOL_ARRAY
-
BYTE_ARRAY
public static final SFSDataType BYTE_ARRAY
-
SHORT_ARRAY
public static final SFSDataType SHORT_ARRAY
-
INT_ARRAY
public static final SFSDataType INT_ARRAY
-
LONG_ARRAY
public static final SFSDataType LONG_ARRAY
-
FLOAT_ARRAY
public static final SFSDataType FLOAT_ARRAY
-
DOUBLE_ARRAY
public static final SFSDataType DOUBLE_ARRAY
-
UTF_STRING_ARRAY
public static final SFSDataType UTF_STRING_ARRAY
-
SFS_ARRAY
public static final SFSDataType SFS_ARRAY
-
SFS_OBJECT
public static final SFSDataType SFS_OBJECT
-
CLASS
public static final SFSDataType CLASS
-
TEXT
public static final SFSDataType TEXT
-
-
Method Detail
-
values
public static SFSDataType[] 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 (SFSDataType c : SFSDataType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static SFSDataType valueOf(java.lang.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:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.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
-
fromClass
public static SFSDataType fromClass(java.lang.Class clazz)
-
getTypeID
public int getTypeID()
-
-