Enum Class VariableType

java.lang.Object
java.lang.Enum<VariableType>
com.acmerobotics.dashboard.config.variable.VariableType
All Implemented Interfaces:
Serializable, Comparable<VariableType>, Constable

public enum VariableType extends Enum<VariableType>
Types of variables supported by the dashboard.
  • Enum Constant Details

    • BOOLEAN

      @SerializedName("boolean") public static final VariableType BOOLEAN
    • INT

      @SerializedName("int") public static final VariableType INT
    • DOUBLE

      @SerializedName("double") public static final VariableType DOUBLE
    • STRING

      @SerializedName("string") public static final VariableType STRING
    • ENUM

      @SerializedName("enum") public static final VariableType ENUM
    • CUSTOM

      @SerializedName("custom") public static final VariableType CUSTOM
  • Method Details

    • values

      public static VariableType[] 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 VariableType 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
    • fromClass

      public static VariableType fromClass(Class<?> klass)
      Returns the variable type corresponding to the class provided.
      Parameters:
      klass -