added new static newInstance method in the Validated class
This commit is contained in:
parent
32bcdcb1c0
commit
49d42ea9d8
|
@ -12,7 +12,7 @@ import java.io.Serializable;
|
|||
public class Validated implements Serializable {
|
||||
|
||||
private String validationDate;
|
||||
private boolean validatedByFunder;
|
||||
private Boolean validatedByFunder;
|
||||
|
||||
public void setValidationDate(String validationDate){
|
||||
this.validationDate = validationDate;
|
||||
|
@ -22,11 +22,18 @@ public class Validated implements Serializable {
|
|||
return validationDate;
|
||||
}
|
||||
|
||||
public void setValidatedByFunder(boolean validated){
|
||||
public void setValidatedByFunder(Boolean validated){
|
||||
this.validatedByFunder = validated;
|
||||
}
|
||||
|
||||
public boolean getValidatedByFunder(){
|
||||
public Boolean getValidatedByFunder(){
|
||||
return validatedByFunder;
|
||||
}
|
||||
|
||||
public static Validated newInstance(Boolean validated, String validationDate){
|
||||
Validated v = new Validated();
|
||||
v.validatedByFunder = validated;
|
||||
v.validationDate = validationDate;
|
||||
return v;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue