Package org.littletonrobotics.junction
Enum Class LogTable.LoggableType
- All Implemented Interfaces:
Serializable,Comparable<LogTable.LoggableType>,Constable
- Enclosing class:
- LogTable
Represents all possible data types that can be logged.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionBoolean value.Boolean array value.Double value.Double array value.Float value.Float array value.Integer (int64) value.Integer (int64) array value.Raw value.String value.String array value. -
Method Summary
Modifier and TypeMethodDescriptionstatic LogTable.LoggableTypefromNT4Type(String type) Returns the type based on a standard string type for NT4.static LogTable.LoggableTypefromWPILOGType(String type) Returns the type based on a standard string type for WPILOGs.Returns the standard string type for NT4.Returns the standard string type for WPILOGs.static LogTable.LoggableTypeReturns the enum constant of this class with the specified name.static LogTable.LoggableType[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
Raw
Raw value. -
Boolean
Boolean value. -
Integer
Integer (int64) value. -
Float
Float value. -
Double
Double value. -
String
String value. -
BooleanArray
Boolean array value. -
IntegerArray
Integer (int64) array value. -
FloatArray
Float array value. -
DoubleArray
Double array value. -
StringArray
String array value.
-
-
Method Details
-
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
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 nameNullPointerException- if the argument is null
-
getWPILOGType
Returns the standard string type for WPILOGs.- Returns:
- The type string.
-
getNT4Type
Returns the standard string type for NT4.- Returns:
- The type string.
-
fromWPILOGType
Returns the type based on a standard string type for WPILOGs.- Parameters:
type- The type string;- Returns:
- The log type.
-
fromNT4Type
Returns the type based on a standard string type for NT4.- Parameters:
type- The type string;- Returns:
- The log type.
-