primaryCommodity
Returns the value of the
primaryCommodity record component.- Returns:
- the value of the
primaryCommodityrecord component
name - route namewaypoints - ordered list of trading posts along the routeactiveFromYear - start of active period (CE, negative for BCE)activeToYear - end of active period (CE)primaryCommodity - the main traded good on this routetransportMode - mode of transport (land, sea, river, mixed)SerializableTradeRouteMapperTradeRoute(String name,
List<TradeRouteMapper.TradingPost> waypoints,
int activeFromYear,
int activeToYear,
String primaryCommodity,
String transportMode) TradeRoute record class.intactiveFromYear record component.intactiveToYear record component.final booleanfinal inthashCode()name()name record component.primaryCommodity record component.final StringtoString()transportMode record component.waypoints record component.TradeRoute record class.name - the value for the name record componentwaypoints - the value for the waypoints record componentactiveFromYear - the value for the activeFromYear record componentactiveToYear - the value for the activeToYear record componentprimaryCommodity - the value for the primaryCommodity record componenttransportMode - the value for the transportMode record componentObjects::equals(Object,Object); primitive components are compared with the compare method from their corresponding wrapper classes.activeFromYear record component.activeFromYear record componentactiveToYear record component.activeToYear record componentprimaryCommodity record component.primaryCommodity record componenttransportMode record component.transportMode record component