public class PopulationDensityClient extends AbstractClient
Client which handles population density data fetching.
locale, localization| Constructor and Description |
|---|
PopulationDensityClient()
Default constructor.
|
PopulationDensityClient(Locale locale)
Overloaded constructor.
|
| Modifier and Type | Method and Description |
|---|---|
List<Density> |
getDensity()
Fetch all density data.
|
List<Density> |
getDensity(Collection<String> regions,
Collection<String> sexes,
Collection<Integer> years)
Fetch all density data which match the input constraints.
|
String |
getUrl()
Returns the URL endpoint which this client represents.
|
get, getBaseUrl, getLocale, getRegions, getYears, post, setLocale, setLocalizationLocalepublic PopulationDensityClient()
Default constructor.
public PopulationDensityClient(Locale locale)
Overloaded constructor.
locale - the Locale for this clientpublic List<Density> getDensity()
Fetch all density data.
Density objectsgetDensity(Collection, Collection, Collection)public List<Density> getDensity(Collection<String> regions, Collection<String> sexes, Collection<Integer> years)
Fetch all density data which match the input constraints.
regions - the regions to fetch data forsexes - the sexes to fetch data foryears - the years to fetch data forDensity objectspublic String getUrl()
AbstractClientReturns the URL endpoint which this client represents.
getUrl in class AbstractClientCopyright © 2017. All rights reserved.