Record Class CANMotorControllerInfo
java.lang.Object
java.lang.Record
xbot.common.injection.electrical_contract.CANMotorControllerInfo
public record CANMotorControllerInfo(String name, MotorControllerType type, CANBusId busId, int deviceId, CANMotorControllerOutputConfig outputConfig)
extends Record
-
Constructor Summary
ConstructorDescriptionCANMotorControllerInfo
(String name, int deviceId) CANMotorControllerInfo
(String name, MotorControllerType type, CANBusId busId, int deviceId) CANMotorControllerInfo
(String name, MotorControllerType type, CANBusId busId, int deviceId, CANMotorControllerOutputConfig outputConfig) Creates an instance of aCANMotorControllerInfo
record class. -
Method Summary
Modifier and TypeMethodDescriptionbusId()
Returns the value of thebusId
record component.int
deviceId()
Returns the value of thedeviceId
record component.final boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.name()
Returns the value of thename
record component.Returns the value of theoutputConfig
record component.final String
toString()
Returns a string representation of this record class.type()
Returns the value of thetype
record component.
-
Constructor Details
-
CANMotorControllerInfo
-
CANMotorControllerInfo
-
CANMotorControllerInfo
public CANMotorControllerInfo(String name, MotorControllerType type, CANBusId busId, int deviceId, CANMotorControllerOutputConfig outputConfig) Creates an instance of aCANMotorControllerInfo
record class.- Parameters:
name
- the value for thename
record componenttype
- the value for thetype
record componentbusId
- the value for thebusId
record componentdeviceId
- the value for thedeviceId
record componentoutputConfig
- the value for theoutputConfig
record component
-
-
Method Details
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. Reference components are compared withObjects::equals(Object,Object)
; primitive components are compared with '=='. -
name
Returns the value of thename
record component.- Returns:
- the value of the
name
record component
-
type
Returns the value of thetype
record component.- Returns:
- the value of the
type
record component
-
busId
Returns the value of thebusId
record component.- Returns:
- the value of the
busId
record component
-
deviceId
public int deviceId()Returns the value of thedeviceId
record component.- Returns:
- the value of the
deviceId
record component
-
outputConfig
Returns the value of theoutputConfig
record component.- Returns:
- the value of the
outputConfig
record component
-