Module software.sava.rpc
Record Class InflationGovernor
java.lang.Object
java.lang.Record
software.sava.rpc.json.http.response.InflationGovernor
public record InflationGovernor(double foundation, double foundationTerm, double initial, double taper, double terminal)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionInflationGovernor(double foundation, double foundationTerm, double initial, double taper, double terminal) Creates an instance of aInflationGovernorrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.doubleReturns the value of thefoundationrecord component.doubleReturns the value of thefoundationTermrecord component.final inthashCode()Returns a hash code value for this object.doubleinitial()Returns the value of theinitialrecord component.static InflationGovernorparse(systems.comodal.jsoniter.JsonIterator ji) doubletaper()Returns the value of thetaperrecord component.doubleterminal()Returns the value of theterminalrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
InflationGovernor
public InflationGovernor(double foundation, double foundationTerm, double initial, double taper, double terminal) Creates an instance of aInflationGovernorrecord class.- Parameters:
foundation- the value for thefoundationrecord componentfoundationTerm- the value for thefoundationTermrecord componentinitial- the value for theinitialrecord componenttaper- the value for thetaperrecord componentterminal- the value for theterminalrecord component
-
-
Method Details
-
parse
-
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 '=='. -
foundation
public double foundation()Returns the value of thefoundationrecord component.- Returns:
- the value of the
foundationrecord component
-
foundationTerm
public double foundationTerm()Returns the value of thefoundationTermrecord component.- Returns:
- the value of the
foundationTermrecord component
-
initial
public double initial()Returns the value of theinitialrecord component.- Returns:
- the value of the
initialrecord component
-
taper
public double taper()Returns the value of thetaperrecord component.- Returns:
- the value of the
taperrecord component
-
terminal
public double terminal()Returns the value of theterminalrecord component.- Returns:
- the value of the
terminalrecord component
-