public class CountriesGeoJsonServiceImpl extends Object implements CountriesGeoJsonService
| Constructor and Description |
|---|
CountriesGeoJsonServiceImpl() |
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
containsLocation(String latitudeLongitudeStr,
Feature feature) |
Optional<Feature> |
countryByIdOrName(String idOrName) |
Optional<Feature> |
countryByLocation(String location) |
Stream<Map.Entry<String,Double>> |
entriesByLocation(Map<String,Double> data,
Feature feature) |
Optional<Map.Entry<String,Double>> |
entryByCountry(Map<String,Double> data,
Feature value) |
protected Double[] |
extractLatLongInfo(String value) |
Optional<Feature> |
findCountry(String idNameOrLocation) |
Optional<Map.Entry<String,Double>> |
findEntry(Map<String,Double> data,
Feature feature) |
Optional<Double> |
findValue(Map<String,Double> data,
Feature feature) |
Feature[] |
getCountries() |
String |
getCountryName(Feature country) |
String |
getCountryNameByCode(String code) |
void |
setup() |
Optional<Double> |
valueByCountry(Map<String,Double> data,
Feature value) |
Optional<Double> |
valueByLocation(Map<String,Double> data,
Feature feature) |
@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<Map.Entry<String,Double>> findEntry(Map<String,Double> data, Feature feature)
findEntry in interface CountriesGeoJsonServicepublic Optional<Double> findValue(Map<String,Double> data, Feature feature)
findValue in interface CountriesGeoJsonServicepublic Optional<Feature> findCountry(String idNameOrLocation)
findCountry in interface CountriesGeoJsonServicepublic Optional<Map.Entry<String,Double>> entryByCountry(Map<String,Double> data, Feature value)
public Stream<Map.Entry<String,Double>> entriesByLocation(Map<String,Double> data, Feature feature)
Copyright © 2012–2020 JBoss by Red Hat. All rights reserved.