java.lang.Object
java.lang.Enum<NativeType>
de.wuespace.telestion.extension.mavlink.annotation.NativeType
All Implemented Interfaces:
Serializable, Comparable<NativeType>, Constable

public enum NativeType extends Enum<NativeType>
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 Constants
    Enum Constant
    Description
    Representation of the char type for MAVLink.
    Basically UINT_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

    Fields
    Modifier and Type
    Field
    Description
    int
    Size in memory of a NativeType.
    boolean
    Indicates whether a NativeType is unsigned or not.
  • Method Summary

    Modifier and Type
    Method
    Description
    static NativeType
    valueOf​(String name)
    Returns the enum constant of this class with the specified name.
    static NativeType[]
    Returns an array containing the constants of this enum class, in the order they are declared.

    Methods inherited from class java.lang.Object

    getClass, notify, notifyAll, wait, wait, wait
  • Enum Constant Details

    • INT_8

      public static final NativeType INT_8
      Representation of the int8_t type for MAVLink.
    • UINT_8

      public static final NativeType UINT_8
      Representation of the uint8_t type for MAVLink.
    • INT_16

      public static final NativeType INT_16
      Representation of the int16_t type for MAVLink.
    • UINT_16

      public static final NativeType UINT_16
      Representation of the uint16_t type for MAVLink.
    • INT_32

      public static final NativeType INT_32
      Representation of the int32_t type for MAVLink.
    • UINT_32

      public static final NativeType UINT_32
      Representation of the uint32_t type for MAVLink.
    • INT_64

      public static final NativeType INT_64
      Representation of the int64_t type for MAVLink.
    • UINT_64

      public static final NativeType 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

      public static final NativeType FLOAT
      Representation of the float type for MAVLink.
    • DOUBLE

      public static final NativeType DOUBLE
      Representation of the double type for MAVLink.
    • CHAR

      public static final NativeType CHAR
      Representation of the char type for MAVLink.
      Basically UINT_8 but a parser can use this type to create Strings more conveniently.
  • Field Details

    • size

      public final int size
      Size in memory of a NativeType.
    • unsigned

      public final boolean unsigned
      Indicates whether a NativeType is unsigned or not.
  • Method Details

    • values

      public static NativeType[] 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

      public static NativeType valueOf(String name)
      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 name
      NullPointerException - if the argument is null