1
0
Fork 0

Field<T> is an actual class, fluent setters

This commit is contained in:
Claudio Atzori 2019-10-24 17:17:12 +02:00
parent 9d04111391
commit 52abfcfac7
1 changed files with 5 additions and 3 deletions

View File

@ -2,7 +2,7 @@ package eu.dnetlib.dhp.schema.oaf;
import java.io.Serializable;
public abstract class Field<T> implements Serializable {
public class Field<T> implements Serializable {
private T value;
@ -12,15 +12,17 @@ public abstract class Field<T> implements Serializable {
return value;
}
public void setValue(T value) {
public Field<T> setValue(T value) {
this.value = value;
return this;
}
public DataInfo getDataInfo() {
return dataInfo;
}
public void setDataInfo(DataInfo dataInfo) {
public Field<T> setDataInfo(DataInfo dataInfo) {
this.dataInfo = dataInfo;
return this;
}
}