-
Notifications
You must be signed in to change notification settings - Fork 4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Added Undo and Redo Commands, Find Driver, Customer and Task, and View #233
base: master
Are you sure you want to change the base?
Conversation
… into addUserGuide
remove redundant imports
Update AddCommandTest to fix checkstyle
Updated AddCommandTest to fix checkstyle.
…view command in progress.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- Remove the empty Checkstyle and Task file in root
- Add undo/redo for suggestcommand too
- Add IDManager
} | ||
|
||
int driverIndex = ParserUtil.parseId(trimmedArgs); | ||
Driver driver = driverList.get(driverIndex - 1); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Check for index out of bound error
Schedule deepCopySchedule = new Schedule(); | ||
for (EventTime eventTime : this.schedule) { | ||
if (!(eventTime.equals(EventTime.parse("0000", START_WORK_TIME)) | ||
|| eventTime.equals(EventTime.parse(END_WORK_TIME, "2359")))) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
if ( (!eventTime.equals(EventTime.parse("0000", START_WORK_TIME)))
|| (!eventTime.equals(EventTime.parse(END_WORK_TIME, "2359"))))
No description provided.