primaryGoods
Returns the value of the
primaryGoods record component.- Returns:
- the value of the
primaryGoodsrecord component
name - trading post namelatitude - geographical latitudelongitude - geographical longituderegion - geographical region namefoundedYear - year the trading post was established (CE, negative for BCE)primaryGoods - list of primary commodities tradedSerializableTradeRouteMapperTradingPost(String name,
double latitude,
double longitude,
String region,
int foundedYear,
List<String> primaryGoods) TradingPost record class.final booleanintfoundedYear record component.final inthashCode()doublelatitude()latitude record component.doublelongitude record component.name()name record component.primaryGoods record component.region()region record component.final StringtoString()TradingPost record class.name - the value for the name record componentlatitude - the value for the latitude record componentlongitude - the value for the longitude record componentregion - the value for the region record componentfoundedYear - the value for the foundedYear record componentprimaryGoods - the value for the primaryGoods record componentObjects::equals(Object,Object); primitive components are compared with the compare method from their corresponding wrapper classes.foundedYear record component.foundedYear record componentprimaryGoods record component.primaryGoods record component