Package com.revrobotics.encoder
Record Class DetachedEncoder.PeriodicStatus1
java.lang.Object
java.lang.Record
com.revrobotics.encoder.DetachedEncoder.PeriodicStatus1
- Enclosing class:
- DetachedEncoder
public static record DetachedEncoder.PeriodicStatus1(boolean unexpectedFault, boolean hasResetFault, boolean canTxFault, boolean canRxFault, boolean eepromFault, boolean stickyUnexpectedFault, boolean stickyHasResetFault, boolean stickyCanTxFault, boolean stickyCanRxFault, boolean stickyEepromFault)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionPeriodicStatus1(boolean unexpectedFault, boolean hasResetFault, boolean canTxFault, boolean canRxFault, boolean eepromFault, boolean stickyUnexpectedFault, boolean stickyHasResetFault, boolean stickyCanTxFault, boolean stickyCanRxFault, boolean stickyEepromFault) Creates an instance of aPeriodicStatus1record class. -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturns the value of thecanRxFaultrecord component.booleanReturns the value of thecanTxFaultrecord component.booleanReturns the value of theeepromFaultrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.booleanReturns the value of thehasResetFaultrecord component.booleanReturns the value of thestickyCanRxFaultrecord component.booleanReturns the value of thestickyCanTxFaultrecord component.booleanReturns the value of thestickyEepromFaultrecord component.booleanReturns the value of thestickyHasResetFaultrecord component.booleanReturns the value of thestickyUnexpectedFaultrecord component.final StringtoString()Returns a string representation of this record class.booleanReturns the value of theunexpectedFaultrecord component.
-
Constructor Details
-
PeriodicStatus1
public PeriodicStatus1(boolean unexpectedFault, boolean hasResetFault, boolean canTxFault, boolean canRxFault, boolean eepromFault, boolean stickyUnexpectedFault, boolean stickyHasResetFault, boolean stickyCanTxFault, boolean stickyCanRxFault, boolean stickyEepromFault) Creates an instance of aPeriodicStatus1record class.- Parameters:
unexpectedFault- the value for theunexpectedFaultrecord componenthasResetFault- the value for thehasResetFaultrecord componentcanTxFault- the value for thecanTxFaultrecord componentcanRxFault- the value for thecanRxFaultrecord componenteepromFault- the value for theeepromFaultrecord componentstickyUnexpectedFault- the value for thestickyUnexpectedFaultrecord componentstickyHasResetFault- the value for thestickyHasResetFaultrecord componentstickyCanTxFault- the value for thestickyCanTxFaultrecord componentstickyCanRxFault- the value for thestickyCanRxFaultrecord componentstickyEepromFault- the value for thestickyEepromFaultrecord 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 '=='. -
unexpectedFault
public boolean unexpectedFault()Returns the value of theunexpectedFaultrecord component.- Returns:
- the value of the
unexpectedFaultrecord component
-
hasResetFault
public boolean hasResetFault()Returns the value of thehasResetFaultrecord component.- Returns:
- the value of the
hasResetFaultrecord component
-
canTxFault
public boolean canTxFault()Returns the value of thecanTxFaultrecord component.- Returns:
- the value of the
canTxFaultrecord component
-
canRxFault
public boolean canRxFault()Returns the value of thecanRxFaultrecord component.- Returns:
- the value of the
canRxFaultrecord component
-
eepromFault
public boolean eepromFault()Returns the value of theeepromFaultrecord component.- Returns:
- the value of the
eepromFaultrecord component
-
stickyUnexpectedFault
public boolean stickyUnexpectedFault()Returns the value of thestickyUnexpectedFaultrecord component.- Returns:
- the value of the
stickyUnexpectedFaultrecord component
-
stickyHasResetFault
public boolean stickyHasResetFault()Returns the value of thestickyHasResetFaultrecord component.- Returns:
- the value of the
stickyHasResetFaultrecord component
-
stickyCanTxFault
public boolean stickyCanTxFault()Returns the value of thestickyCanTxFaultrecord component.- Returns:
- the value of the
stickyCanTxFaultrecord component
-
stickyCanRxFault
public boolean stickyCanRxFault()Returns the value of thestickyCanRxFaultrecord component.- Returns:
- the value of the
stickyCanRxFaultrecord component
-
stickyEepromFault
public boolean stickyEepromFault()Returns the value of thestickyEepromFaultrecord component.- Returns:
- the value of the
stickyEepromFaultrecord component
-