Package com.reduxrobotics.canand
Enum Class CanandSettingsManager.ResultCode
java.lang.Object
java.lang.Enum<CanandSettingsManager.ResultCode>
com.reduxrobotics.canand.CanandSettingsManager.ResultCode
- All Implemented Interfaces:
Serializable
,Comparable<CanandSettingsManager.ResultCode>
,Constable
- Enclosing class:
- CanandSettingsManager<T extends CanandSettings>
Setting result codes.
Positive indicates codes returnable from the "report setting" packet, while negative
indicates codes returnable from other causes (e.g. timeouts)
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
-
Method Summary
Modifier and TypeMethodDescriptionfromIndex
(int index) Return the appropirate enum from the index value.int
getIndex()
Return associated index (unsigned for values >= 0).Returns the enum constant of this class with the specified name.static CanandSettingsManager.ResultCode[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
kInvalid
General invalid data (a placeholder) -
kTimeout
Operation timeout -
kError
Success -
kOk
General error
-
-
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
-
getIndex
public int getIndex()Return associated index (unsigned for values >= 0).- Returns:
- index value
-
fromIndex
Return the appropirate enum from the index value.- Parameters:
index
- index value- Returns:
- corresponding enum.
-