Skip to content

Commit

Permalink
Fix according to changes
Browse files Browse the repository at this point in the history
  • Loading branch information
NatLeong committed Apr 4, 2024
1 parent a90aeef commit dc845ee
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion src/main/java/seedu/address/logic/commands/CheckCommand.java
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
import static java.util.Objects.requireNonNull;

import java.util.List;
import java.util.Objects;

import seedu.address.commons.util.ToStringBuilder;
import seedu.address.logic.Messages;
Expand All @@ -24,7 +25,7 @@ public class CheckCommand extends Command {
public static final String MESSAGE_USAGE = COMMAND_WORD + ": Checks the visits in history of the person identified "
+ "by the NRIC specified. "
+ "Example: " + COMMAND_WORD
+ "S0123456A";
+ " S0123456A";

public static final String MESSAGE_READ_PERSON_SUCCESS = "Checked Person ->\n%1$s";
private final Nric nric;
Expand Down Expand Up @@ -82,4 +83,10 @@ public String toString() {
.add("nric", nric)
.toString();
}

@Override
public int hashCode() {
return Objects.hash(nric);
}

}

0 comments on commit dc845ee

Please sign in to comment.