19 package org.sleuthkit.datamodel;
 
   21 import java.util.Objects;
 
   28         private final long id;
 
   29         private final String name;
 
   30         private final HostDbStatus status;
 
   32         Host(
long id, String name) {
 
   33                 this(id, name, HostDbStatus.ACTIVE);
 
   36         Host(
long id, String name, HostDbStatus status) {
 
   65         HostDbStatus getStatus() {
 
   72                 hash = 67 * hash + (int) (this.
id ^ (this.
id >>> 32));
 
   73                 hash = 67 * hash + Objects.hashCode(this.name);
 
   85                 if (getClass() != obj.getClass()) {
 
   90                 if (this.
id != other.id) {
 
   94                 if ((this.name == null) ? (other.name != null) : !this.name.equals(other.name)) {
 
  107                 DELETED(2, 
"Deleted");
 
  109                 private final int id;
 
  110                 private final String name;
 
  112                 HostDbStatus(
int id, String name) {
 
  125                 static HostDbStatus fromID(
int typeId) {
 
  126                         for (HostDbStatus type : HostDbStatus.values()) {
 
  127                                 if (type.ordinal() == typeId) {
 
boolean equals(Object obj)