Package com.igormaznitsa.jbbp.mapper
Enum Class BinType
- All Implemented Interfaces:
Serializable,Comparable<BinType>,Constable
The Enum contains all supported bin types for mapper.
- Since:
- 1.0
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionA Mapping field will be mapped to a parsed bit field.A Mapping field will be mapped to a parsed bit array field.A Mapping field will be mapped to a parsed boolean field.A Mapping field will be mapped to a parsed boolean array field.A Mapping field will be mapped to a parsed byte field.A Mapping field will be mapped to a parsed byte array field.A Mapping field will be mapped to a parsed double field.A Mapping field will be mapped to a parsed double array field.A Mapping field will be mapped to a parsed float field.A Mapping field will be mapped to a parsed float array field.A Mapping field will be mapped to a parsed integer field.A Mapping field will be mapped to a parsed integer array field.A Mapping field will be mapped to a parsed long field.A Mapping field will be mapped to a parsed long array field.A Mapping field will be mapped to a parsed short field.A Mapping field will be mapped to a parsed short array field.A Mapping field will be mapped to a parsed String field.A Mapping field will be mapped to a parsed String array field.A Mapping field will be mapped to a parsed structure field.A Mapping field will be mapped to a parsed structure array field.A Mapping field will be mapped to a parsed unsigned byte field.A Mapping field will be mapped to a parsed unsigned byte array field.A Mapping field will be mapped to a parsed unsigned integer field.A Mapping field will be mapped to a parsed unsigned integer array field.Undefined type, the mapper will be looking for compatible parsed field with the mapping field.A Mapping field will be mapped to a parsed unsigned short field.A Mapping field will be mapped to a parsed unsigned short array field. -
Method Summary
Modifier and TypeMethodDescriptionstatic BinTypefindCompatible(Class<?> fieldClazz) Find compatible type for a class.Class<? extends JBBPAbstractField> Get The Field class.booleanisArray()Check that the type describes an arraystatic BinTypeReturns the enum constant of this class with the specified name.static BinType[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
UNDEFINED
Undefined type, the mapper will be looking for compatible parsed field with the mapping field. -
BIT
A Mapping field will be mapped to a parsed bit field. -
BOOL
A Mapping field will be mapped to a parsed boolean field. -
BYTE
A Mapping field will be mapped to a parsed byte field. -
UBYTE
A Mapping field will be mapped to a parsed unsigned byte field. -
SHORT
A Mapping field will be mapped to a parsed short field. -
USHORT
A Mapping field will be mapped to a parsed unsigned short field. -
INT
A Mapping field will be mapped to a parsed integer field. -
UINT
A Mapping field will be mapped to a parsed unsigned integer field.- Since:
- 2.0.4
-
DOUBLE
A Mapping field will be mapped to a parsed double field.- Since:
- 1.4.0
-
FLOAT
A Mapping field will be mapped to a parsed float field.- Since:
- 1.4.0
-
STRING
A Mapping field will be mapped to a parsed String field.- Since:
- 1.4.0
-
LONG
A Mapping field will be mapped to a parsed long field. -
BIT_ARRAY
A Mapping field will be mapped to a parsed bit array field. -
BOOL_ARRAY
A Mapping field will be mapped to a parsed boolean array field. -
BYTE_ARRAY
A Mapping field will be mapped to a parsed byte array field. -
UBYTE_ARRAY
A Mapping field will be mapped to a parsed unsigned byte array field. -
SHORT_ARRAY
A Mapping field will be mapped to a parsed short array field. -
USHORT_ARRAY
A Mapping field will be mapped to a parsed unsigned short array field. -
INT_ARRAY
A Mapping field will be mapped to a parsed integer array field. -
UINT_ARRAY
A Mapping field will be mapped to a parsed unsigned integer array field. -
LONG_ARRAY
A Mapping field will be mapped to a parsed long array field. -
FLOAT_ARRAY
A Mapping field will be mapped to a parsed float array field.- Since:
- 1.4.0
-
STRING_ARRAY
A Mapping field will be mapped to a parsed String array field.- Since:
- 1.4.0
-
DOUBLE_ARRAY
A Mapping field will be mapped to a parsed double array field.- Since:
- 1.4.0
-
STRUCT
A Mapping field will be mapped to a parsed structure field. -
STRUCT_ARRAY
A Mapping field will be mapped to a parsed structure array field.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-
findCompatible
Find compatible type for a class.- Parameters:
fieldClazz- the field class to find compatible type, must not be null- Returns:
- found compatible field type or null if not found
-
isArray
public boolean isArray()Check that the type describes an array- Returns:
- true if the type is an array, false otherwise
-
getFieldClass
Get The Field class.- Returns:
- the field class for the value, it can be null
-