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