public class Siblings extends AbstractTimeAndValueModel<Integer,Integer>
Model for siblings data.
| Constructor and Description |
|---|
Siblings()
Default constructor.
|
Siblings(String sex,
String age,
Integer siblingsLivingAtHome,
String familyType,
Integer year,
List<ValueNode<Integer>> values)
Overloaded constructor.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
String |
getAge()
Getter for age.
|
String |
getFamilyType()
Getter for family type.
|
static Map<String,Collection<String>> |
getInputs()
Get the available codes and their respective values for the siblings data from
the API.
|
String |
getSex()
Getter for sex.
|
Integer |
getSiblingsLivingAtHome()
Getter for siblings living at home.
|
int |
hashCode() |
void |
setAge(String age)
Setter for age.
|
void |
setFamilyType(String familyType)
Setter for family type.
|
void |
setSex(String sex)
Setter for sex.
|
void |
setSiblingsLivingAtHome(Integer siblingsLivingAtHome)
Setter for siblings living at home.
|
String |
toString() |
getTime, setTimegetValue, getValues, setValue, setValuespublic Siblings()
Default constructor.
public Siblings(String sex, String age, Integer siblingsLivingAtHome, String familyType, Integer year, List<ValueNode<Integer>> values)
Overloaded constructor.
sex - the sexage - the agesiblingsLivingAtHome - the siblings living at homefamilyType - the family typeyear - the yearvalues - the valuespublic String getSex()
Getter for sex.
public void setSex(String sex)
Setter for sex.
sex - the sexpublic String getAge()
Getter for age.
public void setAge(String age)
Setter for age.
age - the agepublic Integer getSiblingsLivingAtHome()
Getter for siblings living at home.
public void setSiblingsLivingAtHome(Integer siblingsLivingAtHome)
Setter for siblings living at home.
siblingsLivingAtHome - the siblings living at homepublic String getFamilyType()
Getter for family type.
public void setFamilyType(String familyType)
Setter for family type.
familyType - the family typepublic int hashCode()
hashCode in class AbstractTimeAndValueModel<Integer,Integer>public boolean equals(Object obj)
equals in class AbstractTimeAndValueModel<Integer,Integer>public String toString()
toString in class AbstractTimeAndValueModel<Integer,Integer>public static Map<String,Collection<String>> getInputs()
Get the available codes and their respective values for the siblings data from the API.
Copyright © 2017. All rights reserved.