19 package org.sleuthkit.datamodel;
21 import java.util.HashMap;
22 import java.util.Objects;
29 public class TagName implements Comparable<TagName> {
50 private final static HashMap<String, HTML_COLOR> colorMap =
new HashMap<String, HTML_COLOR>();
68 if (colorMap.containsKey(colorName)) {
69 return colorMap.get(colorName);
75 private final long id;
119 hash = 89 * hash + (int) (this.
id ^ (this.
id >>> 32));
120 hash = 89 * hash + (this.displayName != null ? this.displayName.hashCode() : 0);
121 hash = 89 * hash + (this.description != null ? this.description.hashCode() : 0);
122 hash = 89 * hash + (this.color != null ? this.color.hashCode() : 0);
131 if (getClass() != obj.getClass()) {
135 if (this.
id != other.
id) {
139 if (
false == Objects.equals(
this.displayName, other.
displayName)) {
142 if (
false == Objects.equals(
this.description, other.
description)) {
146 return this.color == other.
color;
int compareTo(TagName other)
static HTML_COLOR getColorByName(String colorName)
boolean equals(Object obj)