public class Housing extends AbstractTimeAndValueModel<Integer,String>
Model for housing data.
| Constructor and Description |
|---|
Housing()
Default constructor.
|
Housing(String sex,
String age,
String housingType,
String familyType,
String background,
Integer parentIncome,
Integer year,
List<ValueNode<String>> values)
Overloaded constructor.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
String |
getAge()
Getter for age.
|
String |
getBackground()
Getter for background.
|
String |
getFamilyType()
Getter for family type.
|
String |
getHousingType()
Getter for housing type.
|
static Map<String,Collection<String>> |
getInputs()
Get the available codes and their respective values for the housing data from
the API.
|
Integer |
getParentIncome()
Getter for parent income.
|
String |
getSex()
Getter for sex.
|
int |
hashCode() |
void |
setAge(String age)
Setter for age.
|
void |
setBackground(String background)
Setter for background.
|
void |
setFamilyType(String familyType)
Setter for family type.
|
void |
setHousingType(String housingType)
Setter for housing type.
|
void |
setParentIncome(Integer parentIncome)
Setter for parent income.
|
void |
setSex(String sex)
Setter for sex.
|
String |
toString() |
getTime, setTimegetValue, getValues, setValue, setValuespublic Housing()
Default constructor.
public Housing(String sex, String age, String housingType, String familyType, String background, Integer parentIncome, Integer year, List<ValueNode<String>> values)
Overloaded constructor.
sex - the sexage - the agehousingType - the housing typefamilyType - the family typebackground - the backgroundparentIncome - the parent incomeyear - 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 String getHousingType()
Getter for housing type.
public void setHousingType(String housingType)
Setter for housing type.
housingType - the housing typepublic String getFamilyType()
Getter for family type.
public void setFamilyType(String familyType)
Setter for family type.
familyType - the family typepublic String getBackground()
Getter for background.
public void setBackground(String background)
Setter for background.
background - the backgroundpublic Integer getParentIncome()
Getter for parent income.
public void setParentIncome(Integer parentIncome)
Setter for parent income.
parentIncome - the parent incomepublic int hashCode()
hashCode in class AbstractTimeAndValueModel<Integer,String>public boolean equals(Object obj)
equals in class AbstractTimeAndValueModel<Integer,String>public String toString()
toString in class AbstractTimeAndValueModel<Integer,String>public static Map<String,Collection<String>> getInputs()
Get the available codes and their respective values for the housing data from the API.
Copyright © 2017. All rights reserved.