Skip to content

Commit

Permalink
Update on DeveloperGuide.adoc to include RemoveTagCommand
Browse files Browse the repository at this point in the history
  • Loading branch information
blackroxs committed Oct 25, 2017
1 parent 766de06 commit d901244
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions docs/DeveloperGuide.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -472,6 +472,20 @@ public int compareTo(Object otherPerson) {
The main things to note in this method is that the value "Not Set" will always be sorted away to the bottom of the list.
Also, by default, the list is sorted by name.

=== RemoveTag Command

The RemoveTag command is implemented for fast removal of a tag from all entries in the address book. It is implemented by updating the tag list of entries.

The following shows the implementation method, where user will specify the tagName:
[source,java]
----
public RemoveTagCommand(String tagName) {
this.tagName = tagName;
}
----

[NOTE]
If the tagName is invalid, there will be no exception raised or handled as a removal of invalid tagName essentially does not change the address book.

== Documentation

Expand Down

0 comments on commit d901244

Please sign in to comment.