-
Notifications
You must be signed in to change notification settings - Fork 434
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update setpicture command to work similarly to edit command by making…
… a new Employee. Hence Employees are now properly immutable.
- Loading branch information
Showing
11 changed files
with
77 additions
and
36 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
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 |
---|---|---|
|
@@ -17,6 +17,7 @@ | |
import seedu.address.model.employee.Name; | ||
import seedu.address.model.employee.Payroll; | ||
import seedu.address.model.employee.Phone; | ||
import seedu.address.model.employee.PicturePath; | ||
import seedu.address.model.tag.Tag; | ||
|
||
/** | ||
|
@@ -29,32 +30,32 @@ public static Employee[] getSampleEmployees() { | |
new Email("[email protected]"), new Address("Blk 30 Geylang Street 29, #06-40"), | ||
new Department("Marketing"), new Payroll(4000, 15), new LeaveCounter(), | ||
Optional.of(LocalDate.parse("1998-09-08")), Optional.of(LocalDate.parse("2019-09-07")), | ||
Optional.empty(), getTagSet("friends")), | ||
new PicturePath(), getTagSet("friends")), | ||
new Employee(new Name("Bernice Yu"), new EmployeeId(), new Phone("99272758"), | ||
new Email("[email protected]"), new Address("Blk 30 Lorong 3 Serangoon Gardens, #07-18"), | ||
new Department("Marketing"), new Payroll(4000, 15), new LeaveCounter(), | ||
Optional.of(LocalDate.parse("1988-12-30")), Optional.of(LocalDate.parse("2019-09-07")), | ||
Optional.empty(), getTagSet("colleagues", "friends")), | ||
new PicturePath(), getTagSet("colleagues", "friends")), | ||
new Employee(new Name("Charlotte Oliveiro"), new EmployeeId(), new Phone("93210283"), | ||
new Email("[email protected]"), new Address("Blk 11 Ang Mo Kio Street 74, #11-04"), | ||
new Department("Marketing"), new Payroll(4000, 15), new LeaveCounter(), | ||
Optional.of(LocalDate.parse("1990-09-01")), Optional.of(LocalDate.parse("2019-09-07")), | ||
Optional.empty(), getTagSet("neighbours")), | ||
new PicturePath(), getTagSet("neighbours")), | ||
new Employee(new Name("David Li"), new EmployeeId(), new Phone("91031282"), | ||
new Email("[email protected]"), new Address("Blk 436 Serangoon Gardens Street 26, #16-43"), | ||
new Department("Sales"), new Payroll(4000, 15), new LeaveCounter(), | ||
Optional.of(LocalDate.parse("2000-03-21")), Optional.of(LocalDate.parse("2019-09-07")), | ||
Optional.empty(), getTagSet("family")), | ||
new PicturePath(), getTagSet("family")), | ||
new Employee(new Name("Irfan Ibrahim"), new EmployeeId(), new Phone("92492021"), | ||
new Email("[email protected]"), new Address("Blk 47 Tampines Street 20, #17-35"), | ||
new Department("Sales"), new Payroll(4000, 15), new LeaveCounter(), | ||
Optional.of(LocalDate.parse("1999-04-07")), Optional.of(LocalDate.parse("2019-09-07")), | ||
Optional.empty(), getTagSet("classmates")), | ||
new PicturePath(), getTagSet("classmates")), | ||
new Employee(new Name("Roy Balakrishnan"), new EmployeeId(), new Phone("92624417"), | ||
new Email("[email protected]"), new Address("Blk 45 Aljunied Street 85, #11-31"), | ||
new Department("Sales"), new Payroll(4000, 15), new LeaveCounter(), | ||
Optional.of(LocalDate.parse("1995-06-02")), Optional.of(LocalDate.parse("2019-09-07")), | ||
Optional.empty(), getTagSet("colleagues")) | ||
new PicturePath(), getTagSet("colleagues")) | ||
}; | ||
} | ||
|
||
|
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