Package com.revrobotics.encoder
Record Class DetachedEncoder.Faults
java.lang.Object
java.lang.Record
com.revrobotics.encoder.DetachedEncoder.Faults
- Enclosing class:
- DetachedEncoder
public static record DetachedEncoder.Faults(boolean unexpected, boolean canTx, boolean canRx, boolean eeprom)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionFaults(boolean unexpected, boolean canTx, boolean canRx, boolean eeprom) Creates an instance of aFaultsrecord class. -
Method Summary
Modifier and TypeMethodDescriptionbooleancanRx()Returns the value of thecanRxrecord component.booleancanTx()Returns the value of thecanTxrecord component.booleaneeprom()Returns the value of theeepromrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.final StringtoString()Returns a string representation of this record class.booleanReturns the value of theunexpectedrecord component.
-
Constructor Details
-
Faults
public Faults(boolean unexpected, boolean canTx, boolean canRx, boolean eeprom) Creates an instance of aFaultsrecord class.- Parameters:
unexpected- the value for theunexpectedrecord componentcanTx- the value for thecanTxrecord componentcanRx- the value for thecanRxrecord componenteeprom- the value for theeepromrecord 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. All components in this record class are compared with '=='. -
unexpected
public boolean unexpected()Returns the value of theunexpectedrecord component.- Returns:
- the value of the
unexpectedrecord component
-
canTx
public boolean canTx()Returns the value of thecanTxrecord component.- Returns:
- the value of the
canTxrecord component
-
canRx
public boolean canRx()Returns the value of thecanRxrecord component.- Returns:
- the value of the
canRxrecord component
-
eeprom
public boolean eeprom()Returns the value of theeepromrecord component.- Returns:
- the value of the
eepromrecord component
-