Go to the documentation of this file.
19package org.sleuthkit.autopsy.datamodel;
21import java.util.Objects;
22import org.sleuthkit.datamodel.Host;
36 HostGrouping(Host
host) {
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()) {
68 final HostGrouping other = (HostGrouping) obj;
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);
boolean equals(Object obj)
int compareTo(HostGrouping o)
Copyright © 2012-2024 Sleuth Kit Labs. Generated on:
This work is licensed under a
Creative Commons Attribution-Share Alike 3.0 United States License.