public class PopulationDemographyClient extends AbstractClient
Client which handles population demography data fetching.
Constructor and Description |
---|
PopulationDemographyClient()
Default constructor.
|
PopulationDemographyClient(Locale locale)
Overloaded constructor.
|
Modifier and Type | Method and Description |
---|---|
List<ResponseModel> |
getFertilityRate()
Fetch all fertility rate data.
|
List<ResponseModel> |
getFertilityRate(Collection<String> regions,
Collection<Integer> genders,
Collection<Integer> years)
Fetch all fertility rate data which match the input constraints.
|
List<ResponseModel> |
getMeanAgeFirstChild()
Fetch all mean age for the first child data.
|
List<ResponseModel> |
getMeanAgeFirstChild(Collection<String> regions,
Collection<Integer> genders,
Collection<Integer> years)
Fetch all mean age for the first child data which match the input
constraints.
|
URLEndpoint |
getUrl()
Returns the URL endpoint which this client represents.
|
doGetRequest, doPostRequest, getLocale, getLocalizationLocale, getResponseModels, getResponseModels, getRootUrl, setLocale, setLocalizationLocale
public PopulationDemographyClient()
Default constructor.
public PopulationDemographyClient(Locale locale)
Overloaded constructor.
locale
- the Locale
for this clientpublic List<ResponseModel> getFertilityRate()
Fetch all fertility rate data.
ResponseModel
objectsgetFertilityRate(Collection, Collection, Collection)
public List<ResponseModel> getFertilityRate(Collection<String> regions, Collection<Integer> genders, Collection<Integer> years)
Fetch all fertility rate data which match the input constraints.
regions
- the regions to fetch data forgenders
- the genders to fetch data foryears
- the years to fetch data forResponseModel
objectspublic List<ResponseModel> getMeanAgeFirstChild()
Fetch all mean age for the first child data.
ResponseModel
objectsgetMeanAgeFirstChild(Collection, Collection, Collection)
public List<ResponseModel> getMeanAgeFirstChild(Collection<String> regions, Collection<Integer> genders, Collection<Integer> years)
Fetch all mean age for the first child data which match the input constraints.
regions
- the regions to fetch data forgenders
- the genders to fetch data foryears
- the years to fetch data forResponseModel
objectspublic URLEndpoint getUrl()
AbstractClient
Returns the URL endpoint which this client represents.
getUrl
in class AbstractClient
Copyright © 2017. All rights reserved.