Record Class TradeFlowAnalyzer.GravityModelResult
java.lang.Object
java.lang.Record
org.episteme.social.economics.TradeFlowAnalyzer.GravityModelResult
- Enclosing class:
TradeFlowAnalyzer
public static record TradeFlowAnalyzer.GravityModelResult(TradeFlowAnalyzer.Country origin, TradeFlowAnalyzer.Country destination, Real predictedFlow, Real actualFlow, Real residual)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionGravityModelResult(TradeFlowAnalyzer.Country origin, TradeFlowAnalyzer.Country destination, Real predictedFlow, Real actualFlow, Real residual) Creates an instance of aGravityModelResultrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theactualFlowrecord component.Returns the value of thedestinationrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.origin()Returns the value of theoriginrecord component.Returns the value of thepredictedFlowrecord component.residual()Returns the value of theresidualrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
GravityModelResult
public GravityModelResult(TradeFlowAnalyzer.Country origin, TradeFlowAnalyzer.Country destination, Real predictedFlow, Real actualFlow, Real residual) Creates an instance of aGravityModelResultrecord class.- Parameters:
origin- the value for theoriginrecord componentdestination- the value for thedestinationrecord componentpredictedFlow- the value for thepredictedFlowrecord componentactualFlow- the value for theactualFlowrecord componentresidual- the value for theresidualrecord 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. All components in this record class are compared withObjects::equals(Object,Object). -
origin
Returns the value of theoriginrecord component.- Returns:
- the value of the
originrecord component
-
destination
Returns the value of thedestinationrecord component.- Returns:
- the value of the
destinationrecord component
-
predictedFlow
Returns the value of thepredictedFlowrecord component.- Returns:
- the value of the
predictedFlowrecord component
-
actualFlow
Returns the value of theactualFlowrecord component.- Returns:
- the value of the
actualFlowrecord component
-
residual
Returns the value of theresidualrecord component.- Returns:
- the value of the
residualrecord component
-