From 59452cac10140a0c11f99364040e89e9bddccb2f Mon Sep 17 00:00:00 2001 From: angellineeee Date: Thu, 1 Sep 2016 22:24:17 +0800 Subject: [PATCH 1/3] Encapsulate CommandResult class members --- src/seedu/addressbook/commands/CommandResult.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/seedu/addressbook/commands/CommandResult.java b/src/seedu/addressbook/commands/CommandResult.java index cf4e72585..b4e65d63f 100644 --- a/src/seedu/addressbook/commands/CommandResult.java +++ b/src/seedu/addressbook/commands/CommandResult.java @@ -11,7 +11,7 @@ public class CommandResult { /** The feedback message to be shown to the user. Contains a description of the execution result */ - public final String feedbackToUser; + private final String feedbackToUser; /** The list of persons that was produced by the command */ private final List relevantPersons; From bd6aa6415328deb93edf4e7436b54d48bd31514b Mon Sep 17 00:00:00 2001 From: angellineeee Date: Fri, 16 Sep 2016 01:07:01 +0800 Subject: [PATCH 2/3] T4A3 --- src/seedu/addressbook/data/person/Contact.java | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 src/seedu/addressbook/data/person/Contact.java diff --git a/src/seedu/addressbook/data/person/Contact.java b/src/seedu/addressbook/data/person/Contact.java new file mode 100644 index 000000000..cfcc37849 --- /dev/null +++ b/src/seedu/addressbook/data/person/Contact.java @@ -0,0 +1,15 @@ +package seedu.addressbook.data.person; + +public abstract class Contact { + + public Contact(){ + } + + public abstract String toString(); + + public abstract boolean equals(Object other); + + public abstract int hashCode(); + + public abstract boolean isPrivate(); +} From 3399cd5c02698ae08f4c334e18f4fff5f74f2164 Mon Sep 17 00:00:00 2001 From: angellineeee Date: Fri, 16 Sep 2016 01:14:06 +0800 Subject: [PATCH 3/3] no message --- src/seedu/addressbook/commands/CommandResult.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/seedu/addressbook/commands/CommandResult.java b/src/seedu/addressbook/commands/CommandResult.java index b4e65d63f..cf4e72585 100644 --- a/src/seedu/addressbook/commands/CommandResult.java +++ b/src/seedu/addressbook/commands/CommandResult.java @@ -11,7 +11,7 @@ public class CommandResult { /** The feedback message to be shown to the user. Contains a description of the execution result */ - private final String feedbackToUser; + public final String feedbackToUser; /** The list of persons that was produced by the command */ private final List relevantPersons;