Go to the documentation of this file.
19package org.sleuthkit.autopsy.datamodel;
21import java.util.Objects;
22import org.sleuthkit.datamodel.Person;
36 PersonGrouping(Person
person) {
49 public <T> T accept(AutopsyItemVisitor<T> visitor) {
50 return visitor.visit(
this);
55 return Objects.hashCode(this.person ==
null ? 0 : this.person.getPersonId());
66 if (getClass() != obj.getClass()) {
69 final PersonGrouping other = (PersonGrouping) obj;
70 long thisId = (this.getPerson() ==
null) ? 0 : this.getPerson().getPersonId();
71 long otherId = (other.getPerson() ==
null) ? 0 : other.getPerson().getPersonId();
72 return thisId == otherId;
81 String thisPerson = this.getPerson() ==
null ? null : this.getPerson().getName();
82 String otherPerson = o ==
null || o.getPerson() ==
null ? null : o.getPerson().getName();
85 if (thisPerson ==
null && otherPerson ==
null) {
87 }
else if (thisPerson ==
null) {
89 }
else if (otherPerson ==
null) {
93 return thisPerson.compareToIgnoreCase(otherPerson);
int compareTo(PersonGrouping o)
boolean equals(Object obj)
Copyright © 2012-2024 Sleuth Kit Labs. Generated on:
This work is licensed under a
Creative Commons Attribution-Share Alike 3.0 United States License.