Skip to content

Commit

Permalink
Fix javadocs typos in Model and FriendlyLink
Browse files Browse the repository at this point in the history
  • Loading branch information
gohyongjing committed Mar 14, 2023
1 parent a93e3ac commit 71e90f4
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
4 changes: 2 additions & 2 deletions src/main/java/seedu/address/model/FriendlyLink.java
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,7 @@ public boolean hasPair(Pair pair) {
}

/**
* Adds a {code @pair} to {@code FriendlyLink}.
* Adds a {@code pair} to {@code FriendlyLink}.
* The pair must not already exist in {@code FriendlyLink}.
*
* @param pair Pair to add into FriendlyLink.
Expand All @@ -219,7 +219,7 @@ public void addPair(Pair pair) {

/**
* Adds a pair consisting of elderly with {@code elderlyNric} and volunteer with {@code volunteerNric}
* from {@code FriendlyLink}.
* to {@code FriendlyLink}.
* The pair must not already exist in {@code FriendlyLink}.
*
* @param elderlyNric Nric of elderly.
Expand Down
14 changes: 7 additions & 7 deletions src/main/java/seedu/address/model/Model.java
Original file line number Diff line number Diff line change
Expand Up @@ -125,39 +125,39 @@ public interface Model {

/**
* Adds the given pair.
* {@code pair} must not already exist in the address book.
* {@code pair} must not already exist in FriendlyLink.
*/
void addPair(Pair pair);

/**
* Adds the given pair.
* The pair consisting of elderly with {@code elderlyNric} and volunteer with {@code volunteerNric}
* must not already exist in the address book.
* must not already exist in FriendlyLink.
*/
void addPair(Nric elderlyNric, Nric volunteerNric);

/**
* Returns true if a pair with the same identity as {@code pair} exists in the address book.
* Returns true if a pair with the same identity as {@code pair} exists in FriendlyLink.
*/
boolean hasPair(Pair pair);

/**
* Deletes the given pair.
* The pair must exist in the address book.
* The pair must exist in FriendlyLink.
*/
void deletePair(Pair target);

/**
* Deletes the given pair.
* The pair consisting of elderly with {@code elderlyNric} and volunteer with {@code volunteerNric}
* must exist in the address book.
* must exist in FriendlyLink.
*/
void deletePair(Nric elderlyNric, Nric volunteerNric);

/**
* Replaces the given pair {@code target} with {@code editedPair}.
* {@code target} must exist in the address book.
* The pair identity of {@code editedPair} must not be the same as another existing pair in the address book.
* {@code target} must exist in FriendlyLink.
* The pair identity of {@code editedPair} must not be the same as another existing pair in FriendlyLink.
*/
void setPair(Pair target, Pair editedPair);

Expand Down

0 comments on commit 71e90f4

Please sign in to comment.