Y
- the yearV
- the valuepublic abstract class AbstractYearAndValueModel<Y,V> extends AbstractValueModel<V>
Abstract model which handles year and value.
Modifier and Type | Field and Description |
---|---|
protected Y |
year |
values
Constructor and Description |
---|
AbstractYearAndValueModel()
Default constructor.
|
AbstractYearAndValueModel(Y year,
List<ValueNode<V>> values)
Overloaded constructor.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
Y |
getYear()
Getter for year.
|
int |
hashCode() |
void |
setYear(Y year)
Setter for year.
|
abstract String |
toString() |
getValue, getValues, setValue, setValues
protected Y year
public AbstractYearAndValueModel()
Default constructor.
public Y getYear()
Getter for year.
public void setYear(Y year)
Setter for year.
year
- the yearpublic int hashCode()
hashCode
in class AbstractValueModel<V>
public boolean equals(Object obj)
equals
in class AbstractValueModel<V>
public abstract String toString()
toString
in class AbstractValueModel<V>
Copyright © 2016. All rights reserved.