Record Class AutoEnd.Ended
java.lang.Object
java.lang.Record
frc.robot.auton.AutoEnd.Ended
- Record Components:
reason- whyinterruptedBy- the command that interrupted it, or emptyseconds- how long it ran
- Enclosing class:
AutoEnd
public static record AutoEnd.Ended(AutoEnd.Reason reason, String interruptedBy, double seconds)
extends Record
How an auto ended, as logged.
-
Constructor Summary
ConstructorsConstructorDescriptionEnded(AutoEnd.Reason reason, String interruptedBy, double seconds) Creates an instance of aEndedrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of theinterruptedByrecord component.reason()Returns the value of thereasonrecord component.doubleseconds()Returns the value of thesecondsrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Ended
Creates an instance of aEndedrecord class.- Parameters:
reason- the value for thereasonrecord componentinterruptedBy- the value for theinterruptedByrecord componentseconds- the value for thesecondsrecord component
-
-
Method Details
-
toString
-
hashCode
-
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 thecomparemethod from their corresponding wrapper classes. -
reason
-
interruptedBy
Returns the value of theinterruptedByrecord component.- Returns:
- the value of the
interruptedByrecord component
-
seconds
-