19 package org.turro.tags;
21 import java.util.Objects;
22 import org.turro.util.CompareUtil;
28 public class TagItem implements Comparable<TagItem> {
30 private final String tagName;
31 private final long usage;
32 private boolean selected;
33 private boolean sibling;
35 public TagItem(String tagName,
long usage) {
36 this.tagName = tagName;
38 this.selected =
false;
51 return CompareUtil.compare(tagName, o.tagName);
59 this.selected = selected;
67 this.sibling = sibling;
82 hash = 59 * hash + Objects.hashCode(this.tagName);
94 if (getClass() != obj.getClass()) {
98 if (!Objects.equals(
this.tagName, other.tagName)) {