Package com.batch.android.msgpack.core
Enum MessageFormat
- java.lang.Object
-
- java.lang.Enum<MessageFormat>
-
- com.batch.android.msgpack.core.MessageFormat
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<MessageFormat>
public enum MessageFormat extends java.lang.Enum<MessageFormat>
Describes the list of the message format types defined in the MessagePack specification.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ARRAY16ARRAY32BIN16BIN32BIN8BOOLEANEXT16EXT32EXT8FIXARRAYFIXEXT1FIXEXT16FIXEXT2FIXEXT4FIXEXT8FIXMAPFIXSTRFLOAT32FLOAT64INT16INT32INT64INT8MAP16MAP32NEGFIXINTNEVER_USEDNILPOSFIXINTSTR16STR32STR8UINT16UINT32UINT64UINT8
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description ValueTypegetValueType()Retruns the ValueType corresponding to this MessageFormatstatic MessageFormatvalueOf(byte b)Returns a MessageFormat type of the specified byte valuestatic MessageFormatvalueOf(java.lang.String name)Returns the enum constant of this type with the specified name.static MessageFormat[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
POSFIXINT
public static final MessageFormat POSFIXINT
-
FIXMAP
public static final MessageFormat FIXMAP
-
FIXARRAY
public static final MessageFormat FIXARRAY
-
FIXSTR
public static final MessageFormat FIXSTR
-
NIL
public static final MessageFormat NIL
-
NEVER_USED
public static final MessageFormat NEVER_USED
-
BOOLEAN
public static final MessageFormat BOOLEAN
-
BIN8
public static final MessageFormat BIN8
-
BIN16
public static final MessageFormat BIN16
-
BIN32
public static final MessageFormat BIN32
-
EXT8
public static final MessageFormat EXT8
-
EXT16
public static final MessageFormat EXT16
-
EXT32
public static final MessageFormat EXT32
-
FLOAT32
public static final MessageFormat FLOAT32
-
FLOAT64
public static final MessageFormat FLOAT64
-
UINT8
public static final MessageFormat UINT8
-
UINT16
public static final MessageFormat UINT16
-
UINT32
public static final MessageFormat UINT32
-
UINT64
public static final MessageFormat UINT64
-
INT8
public static final MessageFormat INT8
-
INT16
public static final MessageFormat INT16
-
INT32
public static final MessageFormat INT32
-
INT64
public static final MessageFormat INT64
-
FIXEXT1
public static final MessageFormat FIXEXT1
-
FIXEXT2
public static final MessageFormat FIXEXT2
-
FIXEXT4
public static final MessageFormat FIXEXT4
-
FIXEXT8
public static final MessageFormat FIXEXT8
-
FIXEXT16
public static final MessageFormat FIXEXT16
-
STR8
public static final MessageFormat STR8
-
STR16
public static final MessageFormat STR16
-
STR32
public static final MessageFormat STR32
-
ARRAY16
public static final MessageFormat ARRAY16
-
ARRAY32
public static final MessageFormat ARRAY32
-
MAP16
public static final MessageFormat MAP16
-
MAP32
public static final MessageFormat MAP32
-
NEGFIXINT
public static final MessageFormat NEGFIXINT
-
-
Method Detail
-
values
public static MessageFormat[] 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 (MessageFormat c : MessageFormat.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static MessageFormat 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
-
getValueType
public ValueType getValueType() throws MessageFormatException
Retruns the ValueType corresponding to this MessageFormat- Returns:
- value type
- Throws:
MessageFormatException- if this == NEVER_USED type
-
valueOf
public static MessageFormat valueOf(byte b)
Returns a MessageFormat type of the specified byte value- Parameters:
b- MessageFormat of the given byte- Returns:
-
-