forked from AY2425S1-CS2103T-F11-2/tp
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
112 additions
and
27 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -41,6 +41,12 @@ public class TypicalPersons { | |
.withEmail("[email protected]").withTelegram("fionaKunz").build(); | ||
public static final Person GEORGE = new PersonBuilder().withName("George Best").withPhone("9482442") | ||
.withEmail("[email protected]").withTelegram("georgeBest").build(); | ||
public static final Person JAVIER = new PersonBuilder().withName("Javier Tan").withPhone("93453421") | ||
.withEmail("[email protected]").withTelegram("javierTan").withTags("friend").build(); | ||
public static final Person KELLY = new PersonBuilder().withName("Kelly Lim").withPhone("89453765") | ||
.withEmail("[email protected]").withTelegram("kellyLim").withTags("relative").build(); | ||
public static final Person LENOR = new PersonBuilder().withName("Lenor Kim").withPhone("90784567") | ||
.withEmail("[email protected]").withTelegram("lenor").withTags("relative", "friend").build(); | ||
|
||
// Manually added | ||
public static final Person HOON = new PersonBuilder().withName("Hoon Meier").withPhone("8482424") | ||
|
@@ -73,4 +79,19 @@ public static AddressBook getTypicalAddressBook() { | |
public static List<Person> getTypicalPersons() { | ||
return new ArrayList<>(Arrays.asList(ALICE, BENSON, CARL, DANIEL, ELLE, FIONA, GEORGE)); | ||
} | ||
|
||
public static List<Person> getTypicalPersonsWithTags() { | ||
return new ArrayList<>(Arrays.asList(ALICE, BENSON, CARL, DANIEL, ELLE, FIONA, GEORGE, JAVIER, KELLY, LENOR)); | ||
} | ||
|
||
/** | ||
* Returns an {@code AddressBook} with all the typical persons including tags. | ||
*/ | ||
public static AddressBook getTypicalAddressBookWithTags() { | ||
AddressBook ab = new AddressBook(); | ||
for (Person person : getTypicalPersonsWithTags()) { | ||
ab.addPerson(person); | ||
} | ||
return ab; | ||
} | ||
} |