Package com.easemob.im.server.model
Enum EMKeyValue.Type
- java.lang.Object
-
- java.lang.Enum<EMKeyValue.Type>
-
- com.easemob.im.server.model.EMKeyValue.Type
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<EMKeyValue.Type>
- Enclosing class:
- EMKeyValue
public static enum EMKeyValue.Type extends java.lang.Enum<EMKeyValue.Type>
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static EMKeyValue.Type
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static EMKeyValue.Type[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
BOOL
public static final EMKeyValue.Type BOOL
-
INT
public static final EMKeyValue.Type INT
-
UINT
public static final EMKeyValue.Type UINT
-
LLINT
public static final EMKeyValue.Type LLINT
-
FLOAT
public static final EMKeyValue.Type FLOAT
-
DOUBLE
public static final EMKeyValue.Type DOUBLE
-
STRING
public static final EMKeyValue.Type STRING
-
JSON_STRING
public static final EMKeyValue.Type JSON_STRING
-
OBJECT
public static final EMKeyValue.Type OBJECT
-
-
Method Detail
-
values
public static EMKeyValue.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 (EMKeyValue.Type c : EMKeyValue.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 EMKeyValue.Type 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
-
-