Enum Class StructFieldType

java.lang.Object
java.lang.Enum<StructFieldType>
org.wpilib.util.struct.StructFieldType
All Implemented Interfaces:
Serializable, Comparable<StructFieldType>, Constable

public enum StructFieldType extends Enum<StructFieldType>
Known data types for raw struct dynamic fields (see StructFieldDescriptor).
  • Enum Constant Details

  • Field Details

    • name

      public final String name
      The name of the data type.
    • isInt

      public final boolean isInt
      Indicates if the data type is a signed integer.
    • isUint

      public final boolean isUint
      Indicates if the data type is an unsigned integer.
    • size

      public final int size
      The size (in bytes) of the data type.
  • Method Details

    • values

      public static StructFieldType[] 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 StructFieldType 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
    • toString

      public String toString()
      Overrides:
      toString in class Enum<StructFieldType>
    • fromString

      public static StructFieldType fromString(String str)
      Get field type from string.
      Parameters:
      str - string
      Returns:
      field type