Class PopulationStatisticsAverageAgeClient
- java.lang.Object
-
- com.github.dannil.scbjavaclient.client.AbstractClient
-
- com.github.dannil.scbjavaclient.client.population.statistics.averageage.PopulationStatisticsAverageAgeClient
-
public class PopulationStatisticsAverageAgeClient extends AbstractClient
Client which handles population statistics average age data fetching.
- Since:
- 0.1.0
-
-
Constructor Summary
Constructors Constructor Description PopulationStatisticsAverageAgeClient()
Default constructor.PopulationStatisticsAverageAgeClient(Locale locale)
Overloaded constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<ResponseModel>
getAverageAge()
Fetch all average age data.List<ResponseModel>
getAverageAge(Collection<String> regions, Collection<String> sexes, Collection<Integer> years)
Fetch all average age data which match the input constraints.URLEndpoint
getUrl()
Returns the URL endpoint which this client represents.-
Methods inherited from class com.github.dannil.scbjavaclient.client.AbstractClient
doGetRequest, doPostRequest, getCommunicationProtocol, getLocale, getLocalizationLocale, getResponseModels, getResponseModels, getRootUrl, setCommunicationProtocol, setLocale, setLocalizationLocale
-
-
-
-
Constructor Detail
-
PopulationStatisticsAverageAgeClient
public PopulationStatisticsAverageAgeClient()
Default constructor.
-
PopulationStatisticsAverageAgeClient
public PopulationStatisticsAverageAgeClient(Locale locale)
Overloaded constructor.
- Parameters:
locale
- theLocale
for this client
-
-
Method Detail
-
getAverageAge
public List<ResponseModel> getAverageAge()
Fetch all average age data.
- Returns:
- the data wrapped in a list of
ResponseModel
objects - See Also:
getAverageAge(Collection, Collection, Collection)
-
getAverageAge
public List<ResponseModel> getAverageAge(Collection<String> regions, Collection<String> sexes, Collection<Integer> years)
Fetch all average age data which match the input constraints.
- Parameters:
regions
- the regions to fetch data forsexes
- the sexes to fetch data foryears
- the years to fetch data for- Returns:
- the data wrapped in a list of
ResponseModel
objects
-
getUrl
public URLEndpoint getUrl()
Description copied from class:AbstractClient
Returns the URL endpoint which this client represents.
- Specified by:
getUrl
in classAbstractClient
- Returns:
- the URL endpoint for this client
-
-