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 {
53 private final static HashMap<String, HTML_COLOR> colorMap =
new HashMap<String, HTML_COLOR>();
71 if (colorMap.containsKey(colorName)) {
72 return colorMap.get(colorName);
78 private final long id;
122 hash = 89 * hash + (int) (this.
id ^ (this.
id >>> 32));
123 hash = 89 * hash + (this.displayName != null ? this.displayName.hashCode() : 0);
124 hash = 89 * hash + (this.description != null ? this.description.hashCode() : 0);
125 hash = 89 * hash + (this.color != null ? this.color.hashCode() : 0);
134 if (getClass() != obj.getClass()) {
138 return (this.
id == other.
id
139 && Objects.equals(
this.displayName, other.
displayName)
140 && Objects.equals(this.description, other.
description)
141 && Objects.equals(this.color, other.
color));
int compareTo(TagName other)
static HTML_COLOR getColorByName(String colorName)
boolean equals(Object obj)
static final long serialVersionUID