Package com.team2813.lib2813.subsystems
Record Class ParameterizedIntakeSubsystem.Params
java.lang.Object
java.lang.Record
com.team2813.lib2813.subsystems.ParameterizedIntakeSubsystem.Params
- Enclosing class:
ParameterizedIntakeSubsystem
public static record ParameterizedIntakeSubsystem.Params(ControlMode controlMode, double intakeDemand, double outtakeDemand)
extends Record
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionParams(ControlMode controlMode, double intakeDemand, double outtakeDemand) Creates an instance of aParamsrecord class. -
Method Summary
Modifier and TypeMethodDescriptionbuilder()Returns the value of thecontrolModerecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.doubleReturns the value of theintakeDemandrecord component.doubleReturns the value of theouttakeDemandrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Params
Creates an instance of aParamsrecord class.- Parameters:
controlMode- the value for thecontrolModerecord componentintakeDemand- the value for theintakeDemandrecord componentouttakeDemand- the value for theouttakeDemandrecord component
-
-
Method Details
-
builder
-
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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
controlMode
Returns the value of thecontrolModerecord component.- Returns:
- the value of the
controlModerecord component
-
intakeDemand
public double intakeDemand()Returns the value of theintakeDemandrecord component.- Returns:
- the value of the
intakeDemandrecord component
-
outtakeDemand
public double outtakeDemand()Returns the value of theouttakeDemandrecord component.- Returns:
- the value of the
outtakeDemandrecord component
-