Class PopulationStatisticsForeignBornPersonsClient
- java.lang.Object
-
- com.github.dannil.scbjavaclient.client.AbstractClient
-
- com.github.dannil.scbjavaclient.client.population.statistics.foreignbornpersons.PopulationStatisticsForeignBornPersonsClient
-
public class PopulationStatisticsForeignBornPersonsClient extends AbstractClient
Client which handles population statistics foreign-born persons data fetching.
- Since:
- 0.4.0
-
-
Constructor Summary
Constructors Constructor Description PopulationStatisticsForeignBornPersonsClient()Default constructor.PopulationStatisticsForeignBornPersonsClient(Locale locale)Overloaded constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<ResponseModel>getPopulationByCountryOfBirth()Fetch all population by country of birth data.List<ResponseModel>getPopulationByCountryOfBirth(Collection<String> countriesOfBirths, Collection<String> ages, Collection<Integer> sexes, Collection<Integer> years)Fetch all population by country of birth data which match the input constraints.List<ResponseModel>getSwedishAndForeignBornPopulation()Fetch all Swedish and foreign-born population data.List<ResponseModel>getSwedishAndForeignBornPopulation(Collection<String> regions, Collection<String> ages, Collection<Integer> sexes, Collection<String> regionsOfBirths, Collection<Integer> years)Fetch all Swedish and foreign-born population 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
-
PopulationStatisticsForeignBornPersonsClient
public PopulationStatisticsForeignBornPersonsClient()
Default constructor.
-
PopulationStatisticsForeignBornPersonsClient
public PopulationStatisticsForeignBornPersonsClient(Locale locale)
Overloaded constructor.
- Parameters:
locale- theLocalefor this client
-
-
Method Detail
-
getSwedishAndForeignBornPopulation
public List<ResponseModel> getSwedishAndForeignBornPopulation()
Fetch all Swedish and foreign-born population data.
- Returns:
- the data wrapped in a list of
ResponseModelobjects - See Also:
getSwedishAndForeignBornPopulation(Collection, Collection, Collection, Collection, Collection)
-
getSwedishAndForeignBornPopulation
public List<ResponseModel> getSwedishAndForeignBornPopulation(Collection<String> regions, Collection<String> ages, Collection<Integer> sexes, Collection<String> regionsOfBirths, Collection<Integer> years)
Fetch all Swedish and foreign-born population data which match the input constraints.
- Parameters:
regions- the regionsages- the agessexes- the sexesregionsOfBirths- the regions of birthsyears- the years- Returns:
- the data wrapped in a list of
ResponseModelobjects
-
getPopulationByCountryOfBirth
public List<ResponseModel> getPopulationByCountryOfBirth()
Fetch all population by country of birth data.
- Returns:
- the data wrapped in a list of
ResponseModelobjects - See Also:
getPopulationByCountryOfBirth(Collection, Collection, Collection, Collection)
-
getPopulationByCountryOfBirth
public List<ResponseModel> getPopulationByCountryOfBirth(Collection<String> countriesOfBirths, Collection<String> ages, Collection<Integer> sexes, Collection<Integer> years)
Fetch all population by country of birth data which match the input constraints.
- Parameters:
countriesOfBirths- the countries of birthsages- the agessexes- the sexesyears- the years- 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
-
-