public class CountriesGeoJsonServiceImpl extends Object implements CountriesGeoJsonService
| Constructor and Description |
|---|
CountriesGeoJsonServiceImpl() |
| Modifier and Type | Method and Description |
|---|---|
Optional<Feature> |
countryByIdOrName(String idOrName) |
Optional<Map.Entry<String,Double>> |
entryByCountry(Map<String,Double> data,
Feature value) |
Feature[] |
getCountries() |
String |
getCountryName(Feature country) |
String |
getCountryNameByCode(String code) |
void |
setup() |
Optional<Double> |
valueByCountry(Map<String,Double> data,
Feature value) |
@PostConstruct public void setup()
public Feature[] getCountries()
getCountries in interface CountriesGeoJsonServicepublic String getCountryName(Feature country)
getCountryName in interface CountriesGeoJsonServicepublic String getCountryNameByCode(String code)
getCountryNameByCode in interface CountriesGeoJsonServicepublic Optional<Feature> countryByIdOrName(String idOrName)
countryByIdOrName in interface CountriesGeoJsonServicepublic Optional<Map.Entry<String,Double>> entryByCountry(Map<String,Double> data, Feature value)
entryByCountry in interface CountriesGeoJsonServicepublic Optional<Double> valueByCountry(Map<String,Double> data, Feature value)
valueByCountry in interface CountriesGeoJsonServiceCopyright © 2012–2020 JBoss by Red Hat. All rights reserved.