Enum Class NativeType
- All Implemented Interfaces:
Serializable
,Comparable<NativeType>
,Constable
Defines all native Types of MAVLink which are supported by this Adapter.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionRepresentation of the char type for MAVLink.
BasicallyUINT_8
but a parser can use this type to create Strings more conveniently.Representation of the double type for MAVLink.Representation of the float type for MAVLink.Representation of the int16_t type for MAVLink.Representation of the int32_t type for MAVLink.Representation of the int64_t type for MAVLink.Representation of the int8_t type for MAVLink.Representation of the uint16_t type for MAVLink.Representation of the uint32_t type for MAVLink.Representation of the uint64_t type for MAVLink.
As the Java-Long type has a max.Representation of the uint8_t type for MAVLink. -
Field Summary
Modifier and TypeFieldDescriptionint
Size in memory of aNativeType
.boolean
Indicates whether aNativeType
is unsigned or not. -
Method Summary
Modifier and TypeMethodDescriptionstatic NativeType
Returns the enum constant of this class with the specified name.static NativeType[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
INT_8
Representation of the int8_t type for MAVLink. -
UINT_8
Representation of the uint8_t type for MAVLink. -
INT_16
Representation of the int16_t type for MAVLink. -
UINT_16
Representation of the uint16_t type for MAVLink. -
INT_32
Representation of the int32_t type for MAVLink. -
UINT_32
Representation of the uint32_t type for MAVLink. -
INT_64
Representation of the int64_t type for MAVLink. -
UINT_64
Representation of the uint64_t type for MAVLink.
As the Java-Long type has a max. limit of 9223372036854775807L this might be exceeded! -
FLOAT
Representation of the float type for MAVLink. -
DOUBLE
Representation of the double type for MAVLink. -
CHAR
Representation of the char type for MAVLink.
BasicallyUINT_8
but a parser can use this type to create Strings more conveniently.
-
-
Field Details
-
size
public final int sizeSize in memory of aNativeType
. -
unsigned
public final boolean unsignedIndicates whether aNativeType
is unsigned or not.
-
-
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
-