public enum Type extends Enum<Type>
Type.
The enum Type represents the different potential types of a field of the Msg : Null, SkippedKeys (technical type), Integer(boolean, byte, short, int, long), Decimal (float, double), String (UTF8), Msg (a unsigned int/Value Map), Array with fixed size Values, Array with variable size Values.| Enum Constant and Description |
|---|
ARRAY_FIXED_VALUE
ARRAY_FIXED_VALUE.
|
ARRAY_VARIABLE_VALUE
ARRAY_VARIABLE_VALUE.
|
BYTE
BYTE.
|
DECIMAL
DECIMAL.
|
DOUBLE
DOUBLE.
|
FIVE_BITS_DECIMAL
FIVE_BITS_DECIMAL.
|
FLOAT
FLOAT.
|
INT
INT.
|
INTEGER
INTEGER.
|
LONG
LONG.
|
MSG
MSG.
|
NULL
NULL.
|
SHORT
SHORT.
|
SKIPPED_KEYS
SKIPPED_KEYS.
|
STRING_UTF8
STRING_UTF8.
|
| Modifier and Type | Method and Description |
|---|---|
byte |
getId()
getId.
|
byte |
getShiftId()
get5ShiftId.
|
static Type |
valueOf(byte aId)
valueOf
|
static <T> Type |
valueOf(Class<T> clazz)
valueOf
|
static Type |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Type[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Type NULL
public static final Type SKIPPED_KEYS
public static final Type INTEGER
public static final Type BYTE
public static final Type SHORT
public static final Type INT
public static final Type LONG
public static final Type DECIMAL
public static final Type FLOAT
public static final Type DOUBLE
public static final Type FIVE_BITS_DECIMAL
public static final Type STRING_UTF8
public static final Type MSG
public static final Type ARRAY_FIXED_VALUE
public static final Type ARRAY_VARIABLE_VALUE
public static Type[] values()
for (Type c : Type.values()) System.out.println(c);
public static Type valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant
with the specified nameNullPointerException - if the argument is nullpublic final byte getId()
getId.
public final byte getShiftId()
get5ShiftId.
public static Type valueOf(byte aId)
valueOf
(creation/retrieve of a Type).aId - a byte representing the id of the Type which wants to retrieve.Copyright © 2012–2014 hermod. All rights reserved.