Enum Class NetworkTableType

java.lang.Object
java.lang.Enum<NetworkTableType>
edu.wpi.first.networktables.NetworkTableType
All Implemented Interfaces:
Serializable, Comparable<NetworkTableType>, Constable

Network table data types.
  • Enum Constant Details

  • Method Details

    • values

      public static NetworkTableType[] 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 NetworkTableType 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
    • getValue

      public int getValue()
      Returns the NetworkTable type value.
      Returns:
      The NetworkTable type value.
    • getValueStr

      public String getValueStr()
      Returns the NetworkTable type value as as string.
      Returns:
      The NetworkTable type value as a string.
    • getFromInt

      public static NetworkTableType getFromInt(int value)
      Convert from the numerical representation of type to an enum type.
      Parameters:
      value - The numerical representation of kind
      Returns:
      The kind
    • getFromString

      public static NetworkTableType getFromString(String typeString)
      Convert from a type string to an enum type.
      Parameters:
      typeString - type string
      Returns:
      The kind
    • getStringFromObject

      public static String getStringFromObject(Object data)
      Gets string from generic data value.
      Parameters:
      data - the data to check
      Returns:
      type string of the data, or empty string if no match