Class PopulationStatisticsAmountClient
- java.lang.Object
-
- com.github.dannil.scbjavaclient.client.AbstractClient
-
- com.github.dannil.scbjavaclient.client.population.statistics.amount.PopulationStatisticsAmountClient
-
public class PopulationStatisticsAmountClient extends AbstractClient
Client which handles population statistics amount data fetching.
- Since:
- 0.1.0
-
-
Constructor Summary
Constructors Constructor Description PopulationStatisticsAmountClient()Default constructor.PopulationStatisticsAmountClient(Locale locale)Overloaded constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<ResponseModel>getPopulation()Fetch all population amount data.List<ResponseModel>getPopulation(Collection<String> regions, Collection<String> maritalStatuses, Collection<String> ages, Collection<Integer> sexes, Collection<Integer> years)Fetch all population amount data which match the input constraints.URLEndpointgetUrl()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
-
PopulationStatisticsAmountClient
public PopulationStatisticsAmountClient()
Default constructor.
-
PopulationStatisticsAmountClient
public PopulationStatisticsAmountClient(Locale locale)
Overloaded constructor.
- Parameters:
locale- theLocalefor this client
-
-
Method Detail
-
getPopulation
public List<ResponseModel> getPopulation()
Fetch all population amount data.
- Returns:
- the data wrapped in a list of
ResponseModelobjects - See Also:
getPopulation(Collection, Collection, Collection, Collection, Collection)
-
getPopulation
public List<ResponseModel> getPopulation(Collection<String> regions, Collection<String> maritalStatuses, Collection<String> ages, Collection<Integer> sexes, Collection<Integer> years)
Fetch all population amount data which match the input constraints.
- Parameters:
regions- the regions to fetch data formaritalStatuses- the marital statuses to fetch data forages- the ages to fetch data forsexes- the sexes to fetch data foryears- the years to fetch data for- Returns:
- the data wrapped in a list of
ResponseModelobjects
-
getUrl
public URLEndpoint getUrl()
Description copied from class:AbstractClientReturns the URL endpoint which this client represents.
- Specified by:
getUrlin classAbstractClient- Returns:
- the URL endpoint for this client
-
-