X-Git-Url: http://git.bitcoin.ninja/index.cgi?a=blobdiff_plain;f=src%2Fmain%2Fjava%2Forg%2Fldk%2Fstructs%2FReplyShortChannelIdsEnd.java;fp=src%2Fmain%2Fjava%2Forg%2Fldk%2Fstructs%2FReplyShortChannelIdsEnd.java;h=8af922d85d8294d725eb4d6f2537582896bbe9c9;hb=2bb592fb946e316dba9f4d1123f8ac72ff4e9bf8;hp=e6b5428e5a4003926844fc66e672629ad94bf4b7;hpb=519dc944de5b88f95975140a13fbc6d77dd15a95;p=ldk-java diff --git a/src/main/java/org/ldk/structs/ReplyShortChannelIdsEnd.java b/src/main/java/org/ldk/structs/ReplyShortChannelIdsEnd.java index e6b5428e..8af922d8 100644 --- a/src/main/java/org/ldk/structs/ReplyShortChannelIdsEnd.java +++ b/src/main/java/org/ldk/structs/ReplyShortChannelIdsEnd.java @@ -94,6 +94,18 @@ public class ReplyShortChannelIdsEnd extends CommonBase { return ret_hu_conv; } + /** + * Generates a non-cryptographic 64-bit hash of the ReplyShortChannelIdsEnd. + */ + public long hash() { + long ret = bindings.ReplyShortChannelIdsEnd_hash(this.ptr); + Reference.reachabilityFence(this); + return ret; + } + + @Override public int hashCode() { + return (int)this.hash(); + } /** * Checks if two ReplyShortChannelIdsEnds contain equal inner contents. * This ignores pointers and is_owned flags and looks at the values in fields.