Record Class IMUInfo
java.lang.Object
java.lang.Record
xbot.common.injection.electrical_contract.IMUInfo
public record IMUInfo(String name, XGyro.ImuType imuType, XGyro.InterfaceType interfaceType, CANBusId canBusId, int deviceId)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionIMUInfo
(String name, XGyro.ImuType imuType, XGyro.InterfaceType interfaceType, CANBusId canBusId, int deviceId) Creates an instance of aIMUInfo
record class.IMUInfo
(XGyro.InterfaceType interfaceType) -
Method Summary
Modifier and TypeMethodDescriptioncanBusId()
Returns the value of thecanBusId
record component.static IMUInfo
createMock
(IMUInfo realInstance) 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.imuType()
Returns the value of theimuType
record component.Returns the value of theinterfaceType
record component.name()
Returns the value of thename
record component.final String
toString()
Returns a string representation of this record class.
-
Constructor Details
-
IMUInfo
-
IMUInfo
-
IMUInfo
public IMUInfo(String name, XGyro.ImuType imuType, XGyro.InterfaceType interfaceType, CANBusId canBusId, int deviceId) Creates an instance of aIMUInfo
record class.- Parameters:
name
- the value for thename
record componentimuType
- the value for theimuType
record componentinterfaceType
- the value for theinterfaceType
record componentcanBusId
- the value for thecanBusId
record componentdeviceId
- the value for thedeviceId
record component
-
-
Method Details
-
createMock
-
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
-
imuType
Returns the value of theimuType
record component.- Returns:
- the value of the
imuType
record component
-
interfaceType
Returns the value of theinterfaceType
record component.- Returns:
- the value of the
interfaceType
record component
-
canBusId
Returns the value of thecanBusId
record component.- Returns:
- the value of the
canBusId
record component
-
deviceId
public int deviceId()Returns the value of thedeviceId
record component.- Returns:
- the value of the
deviceId
record component
-