Skip to content

Commit

Permalink
Add line to improve readability
Browse files Browse the repository at this point in the history
  • Loading branch information
ryanlimdx committed Apr 11, 2024
1 parent e71b4ff commit e28dc7b
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
11 changes: 11 additions & 0 deletions src/main/java/seedu/address/logic/commands/EditCommand.java
Original file line number Diff line number Diff line change
Expand Up @@ -207,36 +207,47 @@ public void setTags(Set<Tag> tags) {
public Optional<Set<Tag>> getTags() {
return (tags != null) ? Optional.of(Collections.unmodifiableSet(tags)) : Optional.empty();
}

public void setIc(Ic ic) {
this.ic = ic;
}

public Optional<Ic> getIc() {
return Optional.ofNullable(ic);
}

public void setDob(Dob dob) {
this.dob = dob;
}

public Optional<Dob> getDob() {
return Optional.ofNullable(dob);
}

public void setAdmissionDate(AdmissionDate admissionDate) {
this.admissionDate = admissionDate;
}

public Optional<AdmissionDate> getAdmissionDate() {
return Optional.ofNullable(admissionDate);
}

public void setWard(Ward ward) {
this.ward = ward;
}

public Optional<Ward> getWard() {
return Optional.ofNullable(ward);
}

public void setRemark(Remark remark) {
this.remark = remark;
}

public Optional<Remark> getRemark() {
return Optional.ofNullable(remark);
}

@Override
public boolean equals(Object other) {
if (other == this) {
Expand Down
1 change: 1 addition & 0 deletions src/main/java/seedu/address/model/person/Ic.java
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ public boolean equals(Object other) {
return true;
}

// instanceof handles nulls
if (!(other instanceof Ic)) {
return false;
}
Expand Down

0 comments on commit e28dc7b

Please sign in to comment.