R - the regionY - the yearV - the valuepublic abstract class AbstractRegionYearAndValueModel<R,Y,V> extends AbstractYearAndValueModel<Y,V>
Abstract model which handles region, year and value. Since these values are used by almost every single client response, this class will be extended by a majority of the implemented models.
| Modifier and Type | Field and Description |
|---|---|
protected R |
region |
yearvalues| Modifier | Constructor and Description |
|---|---|
protected |
AbstractRegionYearAndValueModel()
Default constructor.
|
protected |
AbstractRegionYearAndValueModel(R region,
Y year,
List<ValueNode<V>> values)
Overloaded constructor.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
R |
getRegion()
Getter for region.
|
int |
hashCode() |
void |
setRegion(R region)
Setter for region.
|
abstract String |
toString() |
getYear, setYeargetValue, getValues, setValue, setValuesprotected R region
protected AbstractRegionYearAndValueModel()
Default constructor.
public R getRegion()
Getter for region.
public void setRegion(R region)
Setter for region.
region - the regionpublic int hashCode()
hashCode in class AbstractYearAndValueModel<Y,V>public boolean equals(Object obj)
equals in class AbstractYearAndValueModel<Y,V>public abstract String toString()
toString in class AbstractYearAndValueModel<Y,V>Copyright © 2016. All rights reserved.