Skip to content

Commit d1351fa

Browse files
committed
BytesLocation: add hashCode() and equals()
1 parent 7a57cbe commit d1351fa

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

src/main/java/org/scijava/io/BytesLocation.java

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,4 +72,13 @@ public void setByteBuffer(final ByteBuffer bytes) {
7272
this.bytes = bytes;
7373
}
7474

75+
@Override
76+
public int hashCode() {
77+
return System.identityHashCode(this);
78+
}
79+
80+
@Override
81+
public boolean equals(final Object obj) {
82+
return obj == this;
83+
}
7584
}

0 commit comments

Comments
 (0)