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, setLocalizationLocale
public 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()
AbstractClient
Returns the URL endpoint which this client represents.
getUrl
in class AbstractClient
Copyright © 2016. All rights reserved.