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

    Constructors
    Constructor
    Description
    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 a PeriodicStatus1 record class.
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    Returns the value of the canRxFault record component.
    boolean
    Returns the value of the canTxFault record component.
    boolean
    Returns the value of the eepromFault record component.
    final boolean
    Indicates whether some other object is "equal to" this one.
    final int
    Returns a hash code value for this object.
    boolean
    Returns the value of the hasResetFault record component.
    boolean
    Returns the value of the stickyCanRxFault record component.
    boolean
    Returns the value of the stickyCanTxFault record component.
    boolean
    Returns the value of the stickyEepromFault record component.
    boolean
    Returns the value of the stickyHasResetFault record component.
    boolean
    Returns the value of the stickyUnexpectedFault record component.
    final String
    Returns a string representation of this record class.
    boolean
    Returns the value of the unexpectedFault record component.

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • 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 a PeriodicStatus1 record class.
      Parameters:
      unexpectedFault - the value for the unexpectedFault record component
      hasResetFault - the value for the hasResetFault record component
      canTxFault - the value for the canTxFault record component
      canRxFault - the value for the canRxFault record component
      eepromFault - the value for the eepromFault record component
      stickyUnexpectedFault - the value for the stickyUnexpectedFault record component
      stickyHasResetFault - the value for the stickyHasResetFault record component
      stickyCanTxFault - the value for the stickyCanTxFault record component
      stickyCanRxFault - the value for the stickyCanRxFault record component
      stickyEepromFault - the value for the stickyEepromFault record component
  • Method Details

    • toString

      public final String 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.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • 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.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      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 '=='.
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • unexpectedFault

      public boolean unexpectedFault()
      Returns the value of the unexpectedFault record component.
      Returns:
      the value of the unexpectedFault record component
    • hasResetFault

      public boolean hasResetFault()
      Returns the value of the hasResetFault record component.
      Returns:
      the value of the hasResetFault record component
    • canTxFault

      public boolean canTxFault()
      Returns the value of the canTxFault record component.
      Returns:
      the value of the canTxFault record component
    • canRxFault

      public boolean canRxFault()
      Returns the value of the canRxFault record component.
      Returns:
      the value of the canRxFault record component
    • eepromFault

      public boolean eepromFault()
      Returns the value of the eepromFault record component.
      Returns:
      the value of the eepromFault record component
    • stickyUnexpectedFault

      public boolean stickyUnexpectedFault()
      Returns the value of the stickyUnexpectedFault record component.
      Returns:
      the value of the stickyUnexpectedFault record component
    • stickyHasResetFault

      public boolean stickyHasResetFault()
      Returns the value of the stickyHasResetFault record component.
      Returns:
      the value of the stickyHasResetFault record component
    • stickyCanTxFault

      public boolean stickyCanTxFault()
      Returns the value of the stickyCanTxFault record component.
      Returns:
      the value of the stickyCanTxFault record component
    • stickyCanRxFault

      public boolean stickyCanRxFault()
      Returns the value of the stickyCanRxFault record component.
      Returns:
      the value of the stickyCanRxFault record component
    • stickyEepromFault

      public boolean stickyEepromFault()
      Returns the value of the stickyEepromFault record component.
      Returns:
      the value of the stickyEepromFault record component