Skip to content

Commit 8614e20

Browse files
authored
Fix LongWrapper comparison issue (#4940)
1 parent 5fab992 commit 8614e20

1 file changed

Lines changed: 12 additions & 0 deletions

File tree

web/client-api/src/main/java/io/deephaven/web/client/api/LongWrapper.java

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,4 +41,16 @@ public String valueOf() {
4141
public String toString() {
4242
return String.valueOf(value);
4343
}
44+
45+
@JsIgnore
46+
@Override
47+
public boolean equals(Object obj) {
48+
return obj instanceof LongWrapper && ((LongWrapper) obj).value == value;
49+
}
50+
51+
@JsIgnore
52+
@Override
53+
public int hashCode() {
54+
return Long.hashCode(value);
55+
}
4456
}

0 commit comments

Comments
 (0)