@@ -113,28 +113,28 @@ public boolean hasModule(Module module) {
113113 * Adds a module to the app.
114114 * The module must not already exist in the app.
115115 */
116- public void addModule (Module p ) {
117- modules .add (p );
116+ public void addModule (Module module ) {
117+ modules .add (module );
118118 }
119119
120120 /**
121- * Replaces the given module {@code target } in the list with {@code editedModule}.
122- * {@code target } must exist in the app.
121+ * Replaces the given module {@code moduleToEdit } in the list with {@code editedModule}.
122+ * {@code moduleToEdit } must exist in the app.
123123 * The module identity of {@code editedModule} must not
124124 * be the same as another existing module in the app.
125125 */
126- public void setModule (Module target , Module editedModule ) {
126+ public void setModule (Module moduleToEdit , Module editedModule ) {
127127 requireNonNull (editedModule );
128128
129- modules .setModule (target , editedModule );
129+ modules .setModule (moduleToEdit , editedModule );
130130 }
131131
132132 /**
133- * Removes {@code key } from this {@code TrackIter}.
134- * {@code key } must exist in the app.
133+ * Removes {@code module } from this {@code TrackIter}.
134+ * {@code module } must exist in the app.
135135 */
136- public void removeModule (Module key ) {
137- modules .remove (key );
136+ public void removeModule (Module module ) {
137+ modules .remove (module );
138138 }
139139
140140 //=========== Contact ================================================================================
@@ -151,28 +151,28 @@ public boolean hasContact(Contact contact) {
151151 * Adds a module to the app.
152152 * The module must not already exist in the app.
153153 */
154- public void addContact (Contact p ) {
155- contacts .add (p );
154+ public void addContact (Contact contact ) {
155+ contacts .add (contact );
156156 }
157157
158158 /**
159- * Replaces the given contact {@code target } in the list with {@code editedContact}.
160- * {@code target } must exist in the app.
159+ * Replaces the given contact {@code contactToEdit } in the list with {@code editedContact}.
160+ * {@code contactToEdit } must exist in the app.
161161 * The contact identity of {@code editedContact} must not
162162 * be the same as another existing contact in the app.
163163 */
164- public void setContact (Contact target , Contact editedContact ) {
164+ public void setContact (Contact contactToEdit , Contact editedContact ) {
165165 requireNonNull (editedContact );
166166
167- contacts .setContact (target , editedContact );
167+ contacts .setContact (contactToEdit , editedContact );
168168 }
169169
170170 /**
171- * Removes {@code key } from this {@code TrackIter}.
172- * {@code key } must exist in the app.
171+ * Removes {@code contact } from this {@code TrackIter}.
172+ * {@code contact } must exist in the app.
173173 */
174- public void removeContact (Contact key ) {
175- contacts .remove (key );
174+ public void removeContact (Contact contact ) {
175+ contacts .remove (contact );
176176 }
177177
178178
@@ -190,28 +190,28 @@ public boolean hasTask(Task task) {
190190 * Adds a task to the app.
191191 * The task must not already exist in the app.
192192 */
193- public void addTask (Task p ) {
194- tasks .add (p );
193+ public void addTask (Task task ) {
194+ tasks .add (task );
195195 }
196196
197197 /**
198- * Replaces the given task {@code target } in the list with {@code editedTask}.
199- * {@code target } must exist in the app.
198+ * Replaces the given task {@code taskToEdit } in the list with {@code editedTask}.
199+ * {@code taskToEdit } must exist in the app.
200200 * The task identity of {@code editedTask} must not
201201 * be the same as another existing task in the app.
202202 */
203- public void setTask (Task target , Task editedTask ) {
203+ public void setTask (Task taskToEdit , Task editedTask ) {
204204 requireNonNull (editedTask );
205205
206- tasks .setTask (target , editedTask );
206+ tasks .setTask (taskToEdit , editedTask );
207207 }
208208
209209 /**
210- * Removes {@code key } from this {@code TrackIter}.
211- * {@code key } must exist in the app.
210+ * Removes {@code task } from this {@code TrackIter}.
211+ * {@code task } must exist in the app.
212212 */
213- public void removeTask (Task key ) {
214- tasks .remove (key );
213+ public void removeTask (Task task ) {
214+ tasks .remove (task );
215215 }
216216
217217 //=========== Lesson ================================================================================
@@ -228,28 +228,28 @@ public boolean hasLesson(Lesson lesson) {
228228 * Adds a lesson to the app.
229229 * The lesson must not already exist in the app.
230230 */
231- public void addLesson (Lesson p ) {
232- lessons .add (p );
231+ public void addLesson (Lesson lesson ) {
232+ lessons .add (lesson );
233233 }
234234
235235 /**
236- * Replaces the given lesson {@code target } in the list with {@code editedLesson}.
237- * {@code target } must exist in the app.
236+ * Replaces the given lesson {@code lessonToEdit } in the list with {@code editedLesson}.
237+ * {@code lessonToEdit } must exist in the app.
238238 * The lesson identity of {@code editedLesson} must not
239239 * be the same as another existing lesson in the app.
240240 */
241- public void setLesson (Lesson target , Lesson editedLesson ) {
241+ public void setLesson (Lesson lessonToEdit , Lesson editedLesson ) {
242242 requireNonNull (editedLesson );
243243
244- lessons .setLesson (target , editedLesson );
244+ lessons .setLesson (lessonToEdit , editedLesson );
245245 }
246246
247247 /**
248- * Removes {@code key } from this {@code TrackIter}.
249- * {@code key } must exist in the app.
248+ * Removes {@code lesson } from this {@code TrackIter}.
249+ * {@code lesson } must exist in the app.
250250 */
251- public void removeLesson (Lesson key ) {
252- lessons .remove (key );
251+ public void removeLesson (Lesson lesson ) {
252+ lessons .remove (lesson );
253253 }
254254
255255 //// util methods
0 commit comments