public class PopulationAmountClient extends AbstractClient
Client which handles population amount data fetching.
locale, localization| Constructor and Description |
|---|
PopulationAmountClient()
Default constructor.
|
PopulationAmountClient(Locale locale)
Overloaded constructor.
|
| Modifier and Type | Method and Description |
|---|---|
List<Population> |
getPopulation()
Fetch all population amount data.
|
List<Population> |
getPopulation(Collection<String> regions,
Collection<String> relationshipStatuses,
Collection<String> ages,
Collection<Integer> genders,
Collection<Integer> years)
Fetch all population amount data which match the input constraints.
|
String |
getUrl()
Returns the URL endpoint which this client represents.
|
get, getBaseUrl, getLocale, getRegions, getYears, post, setLocale, setLocalizationLocalepublic PopulationAmountClient()
Default constructor.
public PopulationAmountClient(Locale locale)
Overloaded constructor.
locale - the Locale for this clientpublic List<Population> getPopulation()
Fetch all population amount data.
Population objectsgetPopulation(Collection, Collection, Collection, Collection, Collection)public List<Population> getPopulation(Collection<String> regions, Collection<String> relationshipStatuses, Collection<String> ages, Collection<Integer> genders, Collection<Integer> years)
Fetch all population amount data which match the input constraints.
regions - the regions to fetch data forrelationshipStatuses - the relationship statuses to fetch data forages - the ages to fetch data forgenders - the genders to fetch data foryears - the years to fetch data forPopulation objectspublic String getUrl()
AbstractClientReturns the URL endpoint which this client represents.
getUrl in class AbstractClientCopyright © 2017. All rights reserved.