Record Class TradeFlowAnalyzer.TradeFlow
java.lang.Object
java.lang.Record
org.episteme.social.economics.TradeFlowAnalyzer.TradeFlow
- Enclosing class:
TradeFlowAnalyzer
public static record TradeFlowAnalyzer.TradeFlow(TradeFlowAnalyzer.Country exporter, TradeFlowAnalyzer.Country importer, Real value, int year)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionTradeFlow(TradeFlowAnalyzer.Country exporter, TradeFlowAnalyzer.Country importer, Real value, int year) Creates an instance of aTradeFlowrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.exporter()Returns the value of theexporterrecord component.final inthashCode()Returns a hash code value for this object.importer()Returns the value of theimporterrecord component.final StringtoString()Returns a string representation of this record class.value()Returns the value of thevaluerecord component.intyear()Returns the value of theyearrecord component.
-
Constructor Details
-
TradeFlow
public TradeFlow(TradeFlowAnalyzer.Country exporter, TradeFlowAnalyzer.Country importer, Real value, int year) Creates an instance of aTradeFlowrecord class.- Parameters:
exporter- the value for theexporterrecord componentimporter- the value for theimporterrecord componentvalue- the value for thevaluerecord componentyear- the value for theyearrecord 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. -
exporter
Returns the value of theexporterrecord component.- Returns:
- the value of the
exporterrecord component
-
importer
Returns the value of theimporterrecord component.- Returns:
- the value of the
importerrecord component
-
value
Returns the value of thevaluerecord component.- Returns:
- the value of the
valuerecord component
-
year
public int year()Returns the value of theyearrecord component.- Returns:
- the value of the
yearrecord component
-