19 package org.sleuthkit.autopsy.datamodel;
 
   21 import java.util.Objects;
 
   48     public <T> T accept(AutopsyItemVisitor<T> visitor) {
 
   49         return visitor.visit(
this);
 
   54         return Objects.hashCode(this.host == null ? 0 : this.host.getHostId());
 
   65         if (getClass() != obj.getClass()) {
 
   69         long thisId = (this.getHost() == null) ? 0 : this.getHost().getHostId();
 
   70         long otherId = (other.getHost() == null) ? 0 : other.getHost().getHostId();
 
   71         return thisId == otherId;
 
   80         String thisHost = this.getHost() == null ? null : this.getHost().getName();
 
   81         String otherHost = o == null || o.getHost() == null ? null : o.getHost().getName();
 
   84         if (thisHost == null && otherHost == null) {
 
   86         } 
else if (thisHost == null) {
 
   88         } 
else if (otherHost == null) {
 
   92         return thisHost.compareToIgnoreCase(otherHost);
 
int compareTo(HostGrouping o)
boolean equals(Object obj)