Package edu.wpi.first.networktables
Enum NetworkTableType
- All Implemented Interfaces:
Serializable
,Comparable<NetworkTableType>
,java.lang.constant.Constable
public enum NetworkTableType extends Enum<NetworkTableType>
Network table data types.
-
Nested Class Summary
-
Enum Constant Summary
Enum Constants Enum Constant Description kBoolean
kBooleanArray
kDouble
kDoubleArray
kFloat
kFloatArray
kInteger
kIntegerArray
kRaw
kString
kStringArray
kUnassigned
-
Method Summary
Modifier and Type Method Description static NetworkTableType
getFromInt(int value)
Convert from the numerical representation of type to an enum type.static NetworkTableType
getFromString(String typeString)
Convert from a type string to an enum type.static String
getStringFromObject(Object data)
Gets string from generic data value.int
getValue()
String
getValueStr()
static NetworkTableType
valueOf(String name)
Returns the enum constant of this type with the specified name.static NetworkTableType[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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 type has no constant with the specified nameNullPointerException
- if the argument is null
-
getValue
-
getValueStr
-
getFromInt
Convert from the numerical representation of type to an enum type.- Parameters:
value
- The numerical representation of kind- Returns:
- The kind
-
getFromString
Convert from a type string to an enum type.- Parameters:
typeString
- type string- Returns:
- The kind
-
getStringFromObject
Gets string from generic data value.- Parameters:
data
- the data to check- Returns:
- type string of the data, or empty string if no match
-