[Java] Update auto-generated Java bindings to LDK 0.0.121
[ldk-java] / src / main / java / org / ldk / structs / ReplyShortChannelIdsEnd.java
index f18e5e44b711e1a1e712cc5b8b674b7df82495d1..8af922d85d8294d725eb4d6f2537582896bbe9c9 100644 (file)
@@ -9,10 +9,12 @@ import javax.annotation.Nullable;
 
 
 /**
- * A reply_short_channel_ids_end message is sent as a reply to a
- * query_short_channel_ids message. The query recipient makes a best
+ * A [`reply_short_channel_ids_end`] message is sent as a reply to a
+ * message. The query recipient makes a best
  * effort to respond based on their local network view which may not be
  * a perfect view of the network.
+ * 
+ * [`reply_short_channel_ids_end`]: https://github.com/lightning/bolts/blob/master/07-routing-gossip.md#the-query_short_channel_idsreply_short_channel_ids_end-messages
  */
 @SuppressWarnings("unchecked") // We correctly assign various generic arrays
 public class ReplyShortChannelIdsEnd extends CommonBase {
@@ -43,7 +45,7 @@ public class ReplyShortChannelIdsEnd extends CommonBase {
 
        /**
         * Indicates if the query recipient maintains up-to-date channel
-        * information for the chain_hash
+        * information for the `chain_hash`
         */
        public boolean get_full_information() {
                boolean ret = bindings.ReplyShortChannelIdsEnd_get_full_information(this.ptr);
@@ -53,7 +55,7 @@ public class ReplyShortChannelIdsEnd extends CommonBase {
 
        /**
         * Indicates if the query recipient maintains up-to-date channel
-        * information for the chain_hash
+        * information for the `chain_hash`
         */
        public void set_full_information(boolean val) {
                bindings.ReplyShortChannelIdsEnd_set_full_information(this.ptr, val);
@@ -92,12 +94,24 @@ 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.
         * Two objects with NULL inner values will be considered "equal" here.
         */
-       public boolean eq(ReplyShortChannelIdsEnd b) {
+       public boolean eq(org.ldk.structs.ReplyShortChannelIdsEnd b) {
                boolean ret = bindings.ReplyShortChannelIdsEnd_eq(this.ptr, b == null ? 0 : b.ptr);
                Reference.reachabilityFence(this);
                Reference.reachabilityFence(b);