Package edu.wpi.first.networktables
Enum NetworkTableType
- All Implemented Interfaces:
Serializable
,Comparable<NetworkTableType>
,Constable
public enum NetworkTableType extends Enum<NetworkTableType>
Network table data types.
-
Nested Class Summary
-
Enum Constant Summary
Enum Constants Enum Constant Description kBoolean
Boolean data type.kBooleanArray
Boolean array data type.kDouble
Double precision floating-point data type.kDoubleArray
Double precision floating-point array data type.kFloat
Single precision floating-point data type.kFloatArray
Single precision floating-point array data type.kInteger
Integer data type.kIntegerArray
Integer array data type.kRaw
Raw data type.kString
String data type.kStringArray
String array data type.kUnassigned
Unassigned data type. -
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()
Returns the NetworkTable type value.String
getValueStr()
Returns the NetworkTable type value as as string.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
-
kUnassigned
Unassigned data type. -
kBoolean
Boolean data type. -
kDouble
Double precision floating-point data type. -
kString
String data type. -
kRaw
Raw data type. -
kBooleanArray
Boolean array data type. -
kDoubleArray
Double precision floating-point array data type. -
kStringArray
String array data type. -
kInteger
Integer data type. -
kFloat
Single precision floating-point data type. -
kIntegerArray
Integer array data type. -
kFloatArray
Single precision floating-point array data type.
-
-
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
Returns the NetworkTable type value.- Returns:
- The NetworkTable type value.
-
getValueStr
Returns the NetworkTable type value as as string.- Returns:
- The NetworkTable type value as a string.
-
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
-