Skip to content

Commit

Permalink
fix: modify function names
Browse files Browse the repository at this point in the history
  • Loading branch information
Nixx162 committed Nov 1, 2023
1 parent 4518194 commit fe1d7fb
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/main/java/seedu/address/model/event/UniqueEventList.java
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ public void add(Event toAdd) {
* {@code target} must exist in the list.
* The person identity of {@code editedPerson} must not be the same as another existing person in the list.
*/
public void setPerson(Event target, Event editedEvent) {
public void setEvent(Event target, Event editedEvent) {
requireAllNonNull(target, editedEvent);

int index = internalList.indexOf(target);
Expand All @@ -78,7 +78,7 @@ public void remove(Event toRemove) {
}
}

public void setPersons(UniqueEventList replacement) {
public void setEvents(UniqueEventList replacement) {
requireNonNull(replacement);
internalList.setAll(replacement.internalList);
}
Expand All @@ -87,7 +87,7 @@ public void setPersons(UniqueEventList replacement) {
* Replaces the contents of this list with {@code persons}.
* {@code persons} must not contain duplicate persons.
*/
public void setPersons(List<Event> events) {
public void setEvents(List<Event> events) {
requireAllNonNull(events);
if (!eventsAreUnique(events)) {
throw new DuplicateEventException();
Expand Down

0 comments on commit fe1d7fb

Please sign in to comment.