From a05b47d701163fd0d61242f230467599f17156f3 Mon Sep 17 00:00:00 2001 From: georgecwan Date: Tue, 12 Dec 2023 12:33:15 -0800 Subject: [PATCH] Fix LongWrapper comparison issue --- .../io/deephaven/web/client/api/LongWrapper.java | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/web/client-api/src/main/java/io/deephaven/web/client/api/LongWrapper.java b/web/client-api/src/main/java/io/deephaven/web/client/api/LongWrapper.java index ebea84e6d5d..7f2c9be99b6 100644 --- a/web/client-api/src/main/java/io/deephaven/web/client/api/LongWrapper.java +++ b/web/client-api/src/main/java/io/deephaven/web/client/api/LongWrapper.java @@ -41,4 +41,16 @@ public String valueOf() { public String toString() { return String.valueOf(value); } + + @JsIgnore + @Override + public boolean equals(Object obj) { + return obj instanceof LongWrapper && ((LongWrapper) obj).value == value; + } + + @JsIgnore + @Override + public int hashCode() { + return Long.hashCode(value); + } }