19 package org.sleuthkit.autopsy.directorytree;
21 import java.util.Objects;
27 class ExternalViewerRule
implements Comparable<ExternalViewerRule> {
29 private final String name;
30 private final String exePath;
31 private final RuleType ruleType;
44 ExternalViewerRule(String name, String exePath, RuleType type) {
46 this.exePath = exePath;
58 RuleType getRuleType() {
63 public String toString() {
72 public boolean equals(Object other) {
73 if (other != null && other instanceof ExternalViewerRule) {
74 ExternalViewerRule that = (ExternalViewerRule) other;
75 if (this.getName().equals(that.getName())) {
83 public int hashCode() {
85 hash = 67 * hash + Objects.hashCode(this.name);
90 public int compareTo(ExternalViewerRule other) {
91 return this.getName().compareTo(other.getName());