Record Class TrendAndTechnologyFunctions.LinearTrend
java.lang.Object
java.lang.Record
net.simplace.sim.components.models.lintulfast.TrendAndTechnologyFunctions.LinearTrend
- Enclosing class:
- TrendAndTechnologyFunctions
public static record TrendAndTechnologyFunctions.LinearTrend(double a0, double a1, double startYear)
extends Record
-
Constructor Summary
ConstructorDescriptionLinearTrend
(double a0, double a1, double startYear) Creates an instance of aLinearTrend
record class. -
Method Summary
Modifier and TypeMethodDescriptiondouble
a0()
Returns the value of thea0
record component.double
a1()
Returns the value of thea1
record component.final boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.double
Returns the value of thestartYear
record component.final String
toString()
Returns a string representation of this record class.
-
Constructor Details
-
LinearTrend
public LinearTrend(double a0, double a1, double startYear) Creates an instance of aLinearTrend
record class.- Parameters:
a0
- the value for thea0
record componenta1
- the value for thea1
record componentstartYear
- the value for thestartYear
record 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 '=='. -
a0
public double a0()Returns the value of thea0
record component.- Returns:
- the value of the
a0
record component
-
a1
public double a1()Returns the value of thea1
record component.- Returns:
- the value of the
a1
record component
-
startYear
public double startYear()Returns the value of thestartYear
record component.- Returns:
- the value of the
startYear
record component
-