public enum ValueType extends java.lang.Enum<ValueType>
MessagePack uses hierarchical type system. Integer and Float are subypte of Number, Thus isNumberType()
returns true if type is Integer or Float. String and Binary are subtype of Raw. Thus isRawType() returns
true if type is String or Binary.
MessageFormat| Enum Constant and Description |
|---|
ARRAY |
BINARY |
BOOLEAN |
EXTENSION |
FLOAT |
INTEGER |
MAP |
NIL |
STRING |
| Modifier and Type | Method and Description |
|---|---|
boolean |
isArrayType() |
boolean |
isBinaryType() |
boolean |
isBooleanType() |
boolean |
isExtensionType() |
boolean |
isFloatType() |
boolean |
isIntegerType() |
boolean |
isMapType() |
boolean |
isNilType() |
boolean |
isNumberType() |
boolean |
isRawType() |
boolean |
isStringType() |
static ValueType |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static ValueType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ValueType NIL
public static final ValueType BOOLEAN
public static final ValueType INTEGER
public static final ValueType FLOAT
public static final ValueType STRING
public static final ValueType BINARY
public static final ValueType ARRAY
public static final ValueType MAP
public static final ValueType EXTENSION
public static ValueType[] values()
for (ValueType c : ValueType.values()) System.out.println(c);
public static ValueType valueOf(java.lang.String name)
name - the name of the enum constant to be returned.java.lang.IllegalArgumentException - if this enum type has no constant with the specified namejava.lang.NullPointerException - if the argument is nullpublic boolean isNilType()
public boolean isBooleanType()
public boolean isNumberType()
public boolean isIntegerType()
public boolean isFloatType()
public boolean isRawType()
public boolean isStringType()
public boolean isBinaryType()
public boolean isArrayType()
public boolean isMapType()
public boolean isExtensionType()