19 package org.sleuthkit.datamodel;
21 import java.io.Serializable;
22 import java.util.HashMap;
23 import java.util.Objects;
30 public class TagName implements Comparable<TagName>, Serializable {
32 private static final long serialVersionUID = 1L;
53 private final static HashMap<String, HTML_COLOR> colorMap =
new HashMap<String, HTML_COLOR>();
54 private final String name;
58 colorMap.put(color.name(), color);
62 private HTML_COLOR(String name) {
71 if (colorMap.containsKey(colorName)) {
72 return colorMap.get(colorName);
78 private final long id;
79 private final String displayName;
80 private final String description;
81 private final HTML_COLOR color;
87 this.displayName = displayName;
88 this.description = description;
90 this.knownStatus = knownStatus;
128 hash = 89 * hash + (int) (this.
id ^ (this.
id >>> 32));
129 hash = 89 * hash + (this.displayName != null ? this.displayName.hashCode() : 0);
130 hash = 89 * hash + (this.description != null ? this.description.hashCode() : 0);
131 hash = 89 * hash + (this.color != null ? this.color.hashCode() : 0);
132 hash = 89 * hash + (this.knownStatus != null ? this.knownStatus.hashCode() : 0);
141 if (getClass() != obj.getClass()) {
145 return (this.
id == other.id
146 && Objects.equals(
this.displayName, other.displayName)
147 && Objects.equals(this.description, other.description)
148 && Objects.equals(this.color, other.color)
149 && Objects.equals(this.knownStatus, other.knownStatus));
int compareTo(TagName other)
TskData.FileKnown getKnownStatus()
static HTML_COLOR getColorByName(String colorName)
boolean equals(Object obj)