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 aIMUInforecord class.IMUInfo(XGyro.InterfaceType interfaceType) -
Method Summary
Modifier and TypeMethodDescriptioncanBusId()Returns the value of thecanBusIdrecord component.static IMUInfocreateMock(IMUInfo realInstance) intdeviceId()Returns the value of thedeviceIdrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.imuType()Returns the value of theimuTyperecord component.Returns the value of theinterfaceTyperecord component.name()Returns the value of thenamerecord component.final StringtoString()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 aIMUInforecord class.- Parameters:
name- the value for thenamerecord componentimuType- the value for theimuTyperecord componentinterfaceType- the value for theinterfaceTyperecord componentcanBusId- the value for thecanBusIdrecord componentdeviceId- the value for thedeviceIdrecord 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 thenamerecord component.- Returns:
- the value of the
namerecord component
-
imuType
Returns the value of theimuTyperecord component.- Returns:
- the value of the
imuTyperecord component
-
interfaceType
Returns the value of theinterfaceTyperecord component.- Returns:
- the value of the
interfaceTyperecord component
-
canBusId
Returns the value of thecanBusIdrecord component.- Returns:
- the value of the
canBusIdrecord component
-
deviceId
public int deviceId()Returns the value of thedeviceIdrecord component.- Returns:
- the value of the
deviceIdrecord component
-