Class PopulationStatisticsPartnershipClient
- java.lang.Object
-
- com.github.dannil.scbjavaclient.client.AbstractClient
-
- com.github.dannil.scbjavaclient.client.population.statistics.partnership.PopulationStatisticsPartnershipClient
-
public class PopulationStatisticsPartnershipClient extends AbstractClient
Client which handles population statistics partnership data fetching.
- Since:
- 0.1.0
-
-
Constructor Summary
Constructors Constructor Description PopulationStatisticsPartnershipClient()Default constructor.PopulationStatisticsPartnershipClient(Locale locale)Overloaded constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<ResponseModel>getPartnership()Fetch all population partnership data.List<ResponseModel>getPartnership(Collection<String> regions, Collection<String> maritalStatuses, Collection<Integer> sexes, Collection<Integer> years)Fetch all population partnership data which match the input constraints.List<ResponseModel>getPartnershipChange()Fetch all population partnership change data.List<ResponseModel>getPartnershipChange(Collection<String> regions, Collection<String> maritalStatuses, Collection<Integer> sexes, Collection<Integer> years)Fetch all population partnership change 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
-
PopulationStatisticsPartnershipClient
public PopulationStatisticsPartnershipClient()
Default constructor.
-
PopulationStatisticsPartnershipClient
public PopulationStatisticsPartnershipClient(Locale locale)
Overloaded constructor.
- Parameters:
locale- theLocalefor this client
-
-
Method Detail
-
getPartnership
public List<ResponseModel> getPartnership()
Fetch all population partnership data.
- Returns:
- the data wrapped in a list of
ResponseModelobjects - See Also:
getPartnership(Collection, Collection, Collection, Collection)
-
getPartnership
public List<ResponseModel> getPartnership(Collection<String> regions, Collection<String> maritalStatuses, Collection<Integer> sexes, Collection<Integer> years)
Fetch all population partnership data which match the input constraints.
- Parameters:
regions- the regions to fetch data formaritalStatuses- the marital statuses 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
-
getPartnershipChange
public List<ResponseModel> getPartnershipChange()
Fetch all population partnership change data.
- Returns:
- the data wrapped in a list of
ResponseModelobjects - See Also:
getPartnershipChange(Collection, Collection, Collection, Collection)
-
getPartnershipChange
public List<ResponseModel> getPartnershipChange(Collection<String> regions, Collection<String> maritalStatuses, Collection<Integer> sexes, Collection<Integer> years)
Fetch all population partnership change data which match the input constraints.
- Parameters:
regions- the regions to fetch data formaritalStatuses- the marital statuses 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
-
-