Skip to content

Commit

Permalink
Javadoc
Browse files Browse the repository at this point in the history
  • Loading branch information
ldbonkowski committed Nov 30, 2023
1 parent 908bbb2 commit 532a16c
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,12 @@
import java.util.Set;

public class TagComparator implements Comparator<Item> {
/**
* Compares the first tag of each item
* @param item1 the first object to be compared.
* @param item2 the second object to be compared.
* @return 1 if o1 is o2, 0 if tied, -1 otherwise
*/
@Override
public int compare(Item item1, Item item2) {
Tag tag1 = getFirstTag(item1);
Expand Down

0 comments on commit 532a16c

Please sign in to comment.