Record Class SolowGrowthModel.GrowthState
java.lang.Object
java.lang.Record
org.episteme.social.economics.models.SolowGrowthModel.GrowthState
- All Implemented Interfaces:
Serializable
- Enclosing class:
SolowGrowthModel
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionQuantity<?> capital()Returns the value of thecapitalrecord component.Quantity<?> Returns the value of theconsumptionrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Quantity<?> Returns the value of theinvestmentrecord component.Quantity<?> labor()Returns the value of thelaborrecord component.Quantity<?> output()Returns the value of theoutputrecord component.final StringtoString()Returns a string representation of this record class.intyear()Returns the value of theyearrecord component.
-
Constructor Details
-
GrowthState
public GrowthState(int year, Quantity<?> capital, Quantity<?> labor, Quantity<?> output, Quantity<?> consumption, Quantity<?> investment) Creates an instance of aGrowthStaterecord class.- Parameters:
year- the value for theyearrecord componentcapital- the value for thecapitalrecord componentlabor- the value for thelaborrecord componentoutput- the value for theoutputrecord componentconsumption- the value for theconsumptionrecord componentinvestment- the value for theinvestmentrecord 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. -
year
public int year()Returns the value of theyearrecord component.- Returns:
- the value of the
yearrecord component
-
capital
Returns the value of thecapitalrecord component.- Returns:
- the value of the
capitalrecord component
-
labor
Returns the value of thelaborrecord component.- Returns:
- the value of the
laborrecord component
-
output
Returns the value of theoutputrecord component.- Returns:
- the value of the
outputrecord component
-
consumption
Returns the value of theconsumptionrecord component.- Returns:
- the value of the
consumptionrecord component
-
investment
Returns the value of theinvestmentrecord component.- Returns:
- the value of the
investmentrecord component
-