Class PopulationStatisticsMigrationClient
- java.lang.Object
-
- com.github.dannil.scbjavaclient.client.AbstractClient
-
- com.github.dannil.scbjavaclient.client.population.statistics.migration.PopulationStatisticsMigrationClient
-
public class PopulationStatisticsMigrationClient extends AbstractClient
Client which handles population statistics migration data fetching.
- Since:
- 0.3.0
-
-
Constructor Summary
Constructors Constructor Description PopulationStatisticsMigrationClient()
Default constructor.PopulationStatisticsMigrationClient(Locale locale)
Overloaded constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<ResponseModel>
getImmigrations()
Fetch all immigrations data.List<ResponseModel>
getImmigrations(Collection<String> groundsForSettlements, Collection<String> countriesOfBirths, Collection<Integer> sexes, Collection<Integer> years)
Fetch all immigrations data which match the input constraints.List<ResponseModel>
getMigration()
Fetch all migration data.List<ResponseModel>
getMigration(Collection<String> regions, Collection<String> ages, Collection<Integer> sexes, Collection<Integer> years)
Fetch all migration 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
-
PopulationStatisticsMigrationClient
public PopulationStatisticsMigrationClient()
Default constructor.
-
PopulationStatisticsMigrationClient
public PopulationStatisticsMigrationClient(Locale locale)
Overloaded constructor.
- Parameters:
locale
- theLocale
for this client
-
-
Method Detail
-
getImmigrations
public List<ResponseModel> getImmigrations()
Fetch all immigrations data.
- Returns:
- the data wrapped in a list of
ResponseModel
objects - See Also:
getImmigrations(Collection, Collection, Collection, Collection)
-
getImmigrations
public List<ResponseModel> getImmigrations(Collection<String> groundsForSettlements, Collection<String> countriesOfBirths, Collection<Integer> sexes, Collection<Integer> years)
Fetch all immigrations data which match the input constraints.
- Parameters:
groundsForSettlements
- the grounds for settlementscountriesOfBirths
- the countries of birthssexes
- the sexesyears
- the years- Returns:
- the data wrapped in a list of
ResponseModel
objects
-
getMigration
public List<ResponseModel> getMigration()
Fetch all migration data.
- Returns:
- the data wrapped in a list of
ResponseModel
objects - See Also:
getMigration(Collection, Collection, Collection, Collection)
-
getMigration
public List<ResponseModel> getMigration(Collection<String> regions, Collection<String> ages, Collection<Integer> sexes, Collection<Integer> years)
Fetch all migration data which match the input constraints.
- Parameters:
regions
- the regionsages
- the agessexes
- the sexesyears
- the years- 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
-
-