Package com.stuypulse.robot.util.shooter
Record Class InterpolationCalculator.InterpolatedInfo
java.lang.Object
java.lang.Record
com.stuypulse.robot.util.shooter.InterpolationCalculator.InterpolatedInfo
- Enclosing class:
- InterpolationCalculator
public static record InterpolationCalculator.InterpolatedInfo(double targetRPM, double flightTimeSeconds)
extends Record
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final doubleThe field for theflightTimeSecondsrecord component.private final doubleThe field for thetargetRPMrecord component. -
Constructor Summary
ConstructorsConstructorDescriptionInterpolatedInfo(double targetRPM, double flightTimeSeconds) Creates an instance of aInterpolatedInforecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.doubleReturns the value of theflightTimeSecondsrecord component.final inthashCode()Returns a hash code value for this object.doubleReturns the value of thetargetRPMrecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
targetRPM
The field for thetargetRPMrecord component. -
flightTimeSeconds
The field for theflightTimeSecondsrecord component.
-
-
Constructor Details
-
InterpolatedInfo
Creates an instance of aInterpolatedInforecord class.- Parameters:
targetRPM- the value for thetargetRPMrecord componentflightTimeSeconds- the value for theflightTimeSecondsrecord 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
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 '=='. -
targetRPM
Returns the value of thetargetRPMrecord component.- Returns:
- the value of the
targetRPMrecord component
-
flightTimeSeconds
Returns the value of theflightTimeSecondsrecord component.- Returns:
- the value of the
flightTimeSecondsrecord component
-