X-Git-Url: http://git.bitcoin.ninja/index.cgi?a=blobdiff_plain;f=src%2Fmain%2Fjava%2Forg%2Fldk%2Fstructs%2FReplyShortChannelIdsEnd.java;h=8af922d85d8294d725eb4d6f2537582896bbe9c9;hb=2bb592fb946e316dba9f4d1123f8ac72ff4e9bf8;hp=f18e5e44b711e1a1e712cc5b8b674b7df82495d1;hpb=5e9de82b3a7712a41189756d9d16d946142b2ac5;p=ldk-java diff --git a/src/main/java/org/ldk/structs/ReplyShortChannelIdsEnd.java b/src/main/java/org/ldk/structs/ReplyShortChannelIdsEnd.java index f18e5e44..8af922d8 100644 --- a/src/main/java/org/ldk/structs/ReplyShortChannelIdsEnd.java +++ b/src/main/java/org/ldk/structs/ReplyShortChannelIdsEnd.java @@ -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);