public class FertilityRate extends AbstractRegionYearAndValueModel<String,Integer,Double>
Model for fertility rate.
region
year
values
Constructor and Description |
---|
FertilityRate()
Default constructor.
|
FertilityRate(String region,
Integer gender,
Integer year,
List<ValueNode<Double>> values)
Overloaded constructor.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
Integer |
getGender()
Getter for gender.
|
static Map<String,Collection<String>> |
getInputs()
Get the available codes and their respective values for the fertility rate data
from the API.
|
int |
hashCode() |
void |
setGender(Integer gender)
Setter for gender.
|
String |
toString() |
getRegion, setRegion
getYear, setYear
getValue, getValues, setValue, setValues
public Integer getGender()
Getter for gender.
public void setGender(Integer gender)
Setter for gender.
gender
- the genderpublic int hashCode()
hashCode
in class AbstractRegionYearAndValueModel<String,Integer,Double>
public boolean equals(Object obj)
equals
in class AbstractRegionYearAndValueModel<String,Integer,Double>
public String toString()
toString
in class AbstractRegionYearAndValueModel<String,Integer,Double>
public static Map<String,Collection<String>> getInputs()
Get the available codes and their respective values for the fertility rate data from the API.
Copyright © 2016. All rights reserved.