Y - the yearV - the valuepublic abstract class AbstractYearAndValueModel<Y,V> extends AbstractValueModel<V>
| Modifier and Type | Field and Description |
|---|---|
protected Y |
year |
value| Constructor and Description |
|---|
AbstractYearAndValueModel()
Default constructor.
|
AbstractYearAndValueModel(Y year,
V value)
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, setValueprotected Y year
public AbstractYearAndValueModel()
public Y getYear()
public void setYear(Y 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.