19 package org.sleuthkit.datamodel;
21 import java.util.Objects;
30 private final long id;
32 private final String address;
43 super(skCase,
id, address +
"(" + type.
getName() +
")");
44 this.sleuthkitCase = skCase;
46 this.addressType = type;
47 this.address = address;
66 hash = 53 * hash + (int) (this.
id ^ (this.
id >>> 32));
67 hash = 53 * hash + Objects.hashCode(this.addressType);
68 hash = 53 * hash + Objects.hashCode(this.address);
80 if (getClass() != obj.getClass()) {
84 if (this.
id != other.id) {
88 if (this.addressType != other.addressType) {
92 if ((this.address == null) ? (other.address != null) : !this.address.equals(other.address)) {
106 return sleuthkitCase;
128 throw new UnsupportedOperationException(
"Not supported yet.");
132 public <T> T accept(SleuthkitItemVisitor<T> v) {
134 throw new UnsupportedOperationException(
"Not supported yet.");
149 private final int id;
150 private final String name;
167 if (type.ordinal() == typeId) {
SleuthkitCase getSleuthkitCase()
HostAddressType getAddressType()
static HostAddressType fromID(int typeId)
boolean equals(Object obj)
int read(byte[] buf, long offset, long len)
HostAddressType(int id, String name)