Update auto-updated Java files
authorMatt Corallo <git@bluematt.me>
Sun, 5 Dec 2021 23:39:42 +0000 (23:39 +0000)
committerMatt Corallo <git@bluematt.me>
Sun, 5 Dec 2021 23:42:29 +0000 (23:42 +0000)
32 files changed:
src/main/java/org/ldk/structs/Balance.java
src/main/java/org/ldk/structs/ChannelFeatures.java
src/main/java/org/ldk/structs/ClosingTransaction.java
src/main/java/org/ldk/structs/Description.java
src/main/java/org/ldk/structs/ExpiryTime.java
src/main/java/org/ldk/structs/Fallback.java
src/main/java/org/ldk/structs/InitFeatures.java
src/main/java/org/ldk/structs/Invoice.java
src/main/java/org/ldk/structs/InvoiceFeatures.java
src/main/java/org/ldk/structs/InvoiceSignature.java
src/main/java/org/ldk/structs/MinFinalCltvExpiry.java
src/main/java/org/ldk/structs/MonitorUpdateId.java
src/main/java/org/ldk/structs/NodeFeatures.java
src/main/java/org/ldk/structs/NodeId.java
src/main/java/org/ldk/structs/OutPoint.java
src/main/java/org/ldk/structs/Payee.java
src/main/java/org/ldk/structs/PayeePubKey.java
src/main/java/org/ldk/structs/PositiveTimestamp.java
src/main/java/org/ldk/structs/PrivateRoute.java
src/main/java/org/ldk/structs/RawDataPart.java
src/main/java/org/ldk/structs/RawInvoice.java
src/main/java/org/ldk/structs/RetryAttempts.java
src/main/java/org/ldk/structs/Route.java
src/main/java/org/ldk/structs/RouteHint.java
src/main/java/org/ldk/structs/RouteHintHop.java
src/main/java/org/ldk/structs/RouteHop.java
src/main/java/org/ldk/structs/RoutingFees.java
src/main/java/org/ldk/structs/Sha256.java
src/main/java/org/ldk/structs/SignOrCreationError.java
src/main/java/org/ldk/structs/SignedRawInvoice.java
src/main/java/org/ldk/structs/SocketDescriptor.java
src/main/java/org/ldk/structs/WatchedOutput.java

index 429335b4cb451bcd878c41160989f4e39def266a..5ff505404a764ff6920254ba71ba698dbace7353 100644 (file)
@@ -192,4 +192,8 @@ public class Balance extends CommonBase {
                return ret;
        }
 
+       @Override public boolean equals(Object o) {
+               if (!(o instanceof Balance)) return false;
+               return this.eq((Balance)o);
+       }
 }
index 40add60c89cc09985320c7c866984e3ed47bb55e..242bdbca8548d99dca53eb0cc979d17891b99046 100644 (file)
@@ -30,6 +30,10 @@ public class ChannelFeatures extends CommonBase {
                return ret;
        }
 
+       @Override public boolean equals(Object o) {
+               if (!(o instanceof ChannelFeatures)) return false;
+               return this.eq((ChannelFeatures)o);
+       }
        long clone_ptr() {
                long ret = bindings.ChannelFeatures_clone_ptr(this.ptr);
                return ret;
index 35de3c8395e21be4ce02f1e20b47f73e56420471..c702a11b5a49bef3253c0802b2fc8a4ee99f7d0e 100644 (file)
@@ -47,6 +47,9 @@ public class ClosingTransaction extends CommonBase {
                return ret;
        }
 
+       @Override public int hashCode() {
+               return (int)this.hash();
+       }
        /**
         * Construct an object of the class
         */
index 8e8f68ff63dabcac67d6068c943755d5d32403f5..2d23e91ce82de76b83ece769a51df30ece0a4d88 100644 (file)
@@ -46,6 +46,9 @@ public class Description extends CommonBase {
                return ret;
        }
 
+       @Override public int hashCode() {
+               return (int)this.hash();
+       }
        /**
         * Checks if two Descriptions contain equal inner contents.
         * This ignores pointers and is_owned flags and looks at the values in fields.
@@ -57,6 +60,10 @@ public class Description extends CommonBase {
                return ret;
        }
 
+       @Override public boolean equals(Object o) {
+               if (!(o instanceof Description)) return false;
+               return this.eq((Description)o);
+       }
        /**
         * Creates a new `Description` if `description` is at most 1023 __bytes__ long,
         * returns `CreationError::DescriptionTooLong` otherwise
index c476b6c6de74e9835e38891c13da80ad12057e8b..6d18d7e00db9f67bed157170333e5febf585720e 100644 (file)
@@ -49,6 +49,9 @@ public class ExpiryTime extends CommonBase {
                return ret;
        }
 
+       @Override public int hashCode() {
+               return (int)this.hash();
+       }
        /**
         * Checks if two ExpiryTimes contain equal inner contents.
         * This ignores pointers and is_owned flags and looks at the values in fields.
@@ -60,6 +63,10 @@ public class ExpiryTime extends CommonBase {
                return ret;
        }
 
+       @Override public boolean equals(Object o) {
+               if (!(o instanceof ExpiryTime)) return false;
+               return this.eq((ExpiryTime)o);
+       }
        /**
         * Construct an `ExpiryTime` from seconds. If there exists a `PositiveTimestamp` which would
         * overflow on adding the `EpiryTime` to it then this function will return a
index c82d85c16c67ac2b3f85a0555546021d17618df8..18072ac79494820594ea677855ca4df7f9f3acda 100644 (file)
@@ -114,6 +114,9 @@ public class Fallback extends CommonBase {
                return ret;
        }
 
+       @Override public int hashCode() {
+               return (int)this.hash();
+       }
        /**
         * Checks if two Fallbacks contain equal inner contents.
         * This ignores pointers and is_owned flags and looks at the values in fields.
@@ -123,4 +126,8 @@ public class Fallback extends CommonBase {
                return ret;
        }
 
+       @Override public boolean equals(Object o) {
+               if (!(o instanceof Fallback)) return false;
+               return this.eq((Fallback)o);
+       }
 }
index cdc9a58b489a397384cacb78d4bfae82c1e238be..bd3da5a68c7f47da0dd970cc309310284f67f22a 100644 (file)
@@ -30,6 +30,10 @@ public class InitFeatures extends CommonBase {
                return ret;
        }
 
+       @Override public boolean equals(Object o) {
+               if (!(o instanceof InitFeatures)) return false;
+               return this.eq((InitFeatures)o);
+       }
        long clone_ptr() {
                long ret = bindings.InitFeatures_clone_ptr(this.ptr);
                return ret;
index 8817ed413f5c9b086fab29047c8559b744d948dc..b65dc30604f59d2b6846b5a2535f5cf695526d30 100644 (file)
@@ -35,6 +35,10 @@ public class Invoice extends CommonBase {
                return ret;
        }
 
+       @Override public boolean equals(Object o) {
+               if (!(o instanceof Invoice)) return false;
+               return this.eq((Invoice)o);
+       }
        long clone_ptr() {
                long ret = bindings.Invoice_clone_ptr(this.ptr);
                return ret;
index 6d075ce92d9bd786649188aa968a92ff6d0a70ab..74edeee214afe992d29be158f073adb0ac62055b 100644 (file)
@@ -30,6 +30,10 @@ public class InvoiceFeatures extends CommonBase {
                return ret;
        }
 
+       @Override public boolean equals(Object o) {
+               if (!(o instanceof InvoiceFeatures)) return false;
+               return this.eq((InvoiceFeatures)o);
+       }
        long clone_ptr() {
                long ret = bindings.InvoiceFeatures_clone_ptr(this.ptr);
                return ret;
index c6f759108924e587594b5a943731b8224a737a2e..244324664248467f1c597b030d83d7dded9312de 100644 (file)
@@ -46,4 +46,8 @@ public class InvoiceSignature extends CommonBase {
                return ret;
        }
 
+       @Override public boolean equals(Object o) {
+               if (!(o instanceof InvoiceSignature)) return false;
+               return this.eq((InvoiceSignature)o);
+       }
 }
index 56f6937b6535d11c2590a1f973df8e9fb0e7dcd2..4f36de2c025892dc7192265258bfb93b8d00eaaa 100644 (file)
@@ -63,6 +63,9 @@ public class MinFinalCltvExpiry extends CommonBase {
                return ret;
        }
 
+       @Override public int hashCode() {
+               return (int)this.hash();
+       }
        /**
         * Checks if two MinFinalCltvExpirys contain equal inner contents.
         * This ignores pointers and is_owned flags and looks at the values in fields.
@@ -74,4 +77,8 @@ public class MinFinalCltvExpiry extends CommonBase {
                return ret;
        }
 
+       @Override public boolean equals(Object o) {
+               if (!(o instanceof MinFinalCltvExpiry)) return false;
+               return this.eq((MinFinalCltvExpiry)o);
+       }
 }
index bdc9e7f18f4dd8b18b5a668ff3f8142b8c97553b..63a3e01ea6a8e9577903936f9ec5a40cc7f24787 100644 (file)
@@ -43,6 +43,9 @@ public class MonitorUpdateId extends CommonBase {
                return ret;
        }
 
+       @Override public int hashCode() {
+               return (int)this.hash();
+       }
        /**
         * Checks if two MonitorUpdateIds contain equal inner contents.
         * This ignores pointers and is_owned flags and looks at the values in fields.
@@ -54,4 +57,8 @@ public class MonitorUpdateId extends CommonBase {
                return ret;
        }
 
+       @Override public boolean equals(Object o) {
+               if (!(o instanceof MonitorUpdateId)) return false;
+               return this.eq((MonitorUpdateId)o);
+       }
 }
index 1a05b6d5aad4cbca48d75e97f94566a1eb8dd5e3..c5156fe867556f77e74b88c59dc5f5dc594adcb1 100644 (file)
@@ -30,6 +30,10 @@ public class NodeFeatures extends CommonBase {
                return ret;
        }
 
+       @Override public boolean equals(Object o) {
+               if (!(o instanceof NodeFeatures)) return false;
+               return this.eq((NodeFeatures)o);
+       }
        long clone_ptr() {
                long ret = bindings.NodeFeatures_clone_ptr(this.ptr);
                return ret;
index a0074a6592c3f2841cf76b9b3983dd8d3df9c0e2..ce70f7570022d371aae3e5ab7c6d61b4837e7a3f 100644 (file)
@@ -62,6 +62,9 @@ public class NodeId extends CommonBase {
                return ret;
        }
 
+       @Override public int hashCode() {
+               return (int)this.hash();
+       }
        /**
         * Serialize the NodeId object into a byte array which can be read by NodeId_read
         */
index a181f35f2bed37b54ca9d0b051fa36646930472b..24790117d0251963ea99ca365480601d333e5221 100644 (file)
@@ -90,6 +90,10 @@ public class OutPoint extends CommonBase {
                return ret;
        }
 
+       @Override public boolean equals(Object o) {
+               if (!(o instanceof OutPoint)) return false;
+               return this.eq((OutPoint)o);
+       }
        /**
         * Checks if two OutPoints contain equal inner contents.
         */
@@ -98,6 +102,9 @@ public class OutPoint extends CommonBase {
                return ret;
        }
 
+       @Override public int hashCode() {
+               return (int)this.hash();
+       }
        /**
         * Convert an `OutPoint` to a lightning channel id.
         */
index 317801b675804ec5d29f05aba5605fcabbd1517b..75dea48c21587322dc9eb1cc88ed28fc1bc9b439 100644 (file)
@@ -142,6 +142,9 @@ public class Payee extends CommonBase {
                return ret;
        }
 
+       @Override public int hashCode() {
+               return (int)this.hash();
+       }
        /**
         * Checks if two Payees contain equal inner contents.
         * This ignores pointers and is_owned flags and looks at the values in fields.
@@ -153,6 +156,10 @@ public class Payee extends CommonBase {
                return ret;
        }
 
+       @Override public boolean equals(Object o) {
+               if (!(o instanceof Payee)) return false;
+               return this.eq((Payee)o);
+       }
        /**
         * Serialize the Payee object into a byte array which can be read by Payee_read
         */
index 3f1ef3223a9e99cc6703536af232a8fc9792509a..e694e88018171655735e2405d67d4278d38f433c 100644 (file)
@@ -63,6 +63,9 @@ public class PayeePubKey extends CommonBase {
                return ret;
        }
 
+       @Override public int hashCode() {
+               return (int)this.hash();
+       }
        /**
         * Checks if two PayeePubKeys contain equal inner contents.
         * This ignores pointers and is_owned flags and looks at the values in fields.
@@ -74,4 +77,8 @@ public class PayeePubKey extends CommonBase {
                return ret;
        }
 
+       @Override public boolean equals(Object o) {
+               if (!(o instanceof PayeePubKey)) return false;
+               return this.eq((PayeePubKey)o);
+       }
 }
index 3113fe775e72a2604b3fd0d5f25e8d666f353a9a..538c52605866d7cd0fa76afb11a58a274c9ec006 100644 (file)
@@ -35,6 +35,10 @@ public class PositiveTimestamp extends CommonBase {
                return ret;
        }
 
+       @Override public boolean equals(Object o) {
+               if (!(o instanceof PositiveTimestamp)) return false;
+               return this.eq((PositiveTimestamp)o);
+       }
        long clone_ptr() {
                long ret = bindings.PositiveTimestamp_clone_ptr(this.ptr);
                return ret;
index c4f11b6c8983fd035f0a4b9fa497d9de3630db4b..704ab62112d47fbc2d3bf9f452ce3542b1162e75 100644 (file)
@@ -46,6 +46,9 @@ public class PrivateRoute extends CommonBase {
                return ret;
        }
 
+       @Override public int hashCode() {
+               return (int)this.hash();
+       }
        /**
         * Checks if two PrivateRoutes contain equal inner contents.
         * This ignores pointers and is_owned flags and looks at the values in fields.
@@ -57,6 +60,10 @@ public class PrivateRoute extends CommonBase {
                return ret;
        }
 
+       @Override public boolean equals(Object o) {
+               if (!(o instanceof PrivateRoute)) return false;
+               return this.eq((PrivateRoute)o);
+       }
        /**
         * Creates a new (partial) route from a list of hops
         */
index 340fc191b8b5640b1af7df0fb87bae026e704d87..bf1c56c8efbc1b49c62fa749b26a95e02c031079 100644 (file)
@@ -48,6 +48,10 @@ public class RawDataPart extends CommonBase {
                return ret;
        }
 
+       @Override public boolean equals(Object o) {
+               if (!(o instanceof RawDataPart)) return false;
+               return this.eq((RawDataPart)o);
+       }
        long clone_ptr() {
                long ret = bindings.RawDataPart_clone_ptr(this.ptr);
                return ret;
index 00082036314a0709d383c0d508eefc16a4617f11..39858da039d67f23f78d5e46f7c38463f7910064 100644 (file)
@@ -52,6 +52,10 @@ public class RawInvoice extends CommonBase {
                return ret;
        }
 
+       @Override public boolean equals(Object o) {
+               if (!(o instanceof RawInvoice)) return false;
+               return this.eq((RawInvoice)o);
+       }
        long clone_ptr() {
                long ret = bindings.RawInvoice_clone_ptr(this.ptr);
                return ret;
index af5877896024045797c4832dbc135002b1b0850f..0dafc5984e9f57e014c194e1897bdbeeeac1286d 100644 (file)
@@ -70,6 +70,10 @@ public class RetryAttempts extends CommonBase {
                return ret;
        }
 
+       @Override public boolean equals(Object o) {
+               if (!(o instanceof RetryAttempts)) return false;
+               return this.eq((RetryAttempts)o);
+       }
        /**
         * Checks if two RetryAttemptss contain equal inner contents.
         */
@@ -78,4 +82,7 @@ public class RetryAttempts extends CommonBase {
                return ret;
        }
 
+       @Override public int hashCode() {
+               return (int)this.hash();
+       }
 }
index 453292e892df1804350408675da0aa0902985dbd..877c304605f44f1b4ec371fe7d10b5a045b7bc7d 100644 (file)
@@ -123,6 +123,9 @@ public class Route extends CommonBase {
                return ret;
        }
 
+       @Override public int hashCode() {
+               return (int)this.hash();
+       }
        /**
         * Checks if two Routes contain equal inner contents.
         * This ignores pointers and is_owned flags and looks at the values in fields.
@@ -134,6 +137,10 @@ public class Route extends CommonBase {
                return ret;
        }
 
+       @Override public boolean equals(Object o) {
+               if (!(o instanceof Route)) return false;
+               return this.eq((Route)o);
+       }
        /**
         * Returns the total amount of fees paid on this [`Route`].
         * 
index 6ead7770d81545a718d7e7ee9f18693f81353af0..4e8f75e2336aaaabde386cf541d4e778ad1ea41d 100644 (file)
@@ -70,6 +70,9 @@ public class RouteHint extends CommonBase {
                return ret;
        }
 
+       @Override public int hashCode() {
+               return (int)this.hash();
+       }
        /**
         * Checks if two RouteHints contain equal inner contents.
         * This ignores pointers and is_owned flags and looks at the values in fields.
@@ -81,6 +84,10 @@ public class RouteHint extends CommonBase {
                return ret;
        }
 
+       @Override public boolean equals(Object o) {
+               if (!(o instanceof RouteHint)) return false;
+               return this.eq((RouteHint)o);
+       }
        /**
         * Serialize the RouteHint object into a byte array which can be read by RouteHint_read
         */
index 47f38b337fa7fee93927e81940aee19b06a7d1ca..7bc7cde9d7287c92ae129fd6a34ee0d19eaf2363 100644 (file)
@@ -153,6 +153,9 @@ public class RouteHintHop extends CommonBase {
                return ret;
        }
 
+       @Override public int hashCode() {
+               return (int)this.hash();
+       }
        /**
         * Checks if two RouteHintHops contain equal inner contents.
         * This ignores pointers and is_owned flags and looks at the values in fields.
@@ -164,6 +167,10 @@ public class RouteHintHop extends CommonBase {
                return ret;
        }
 
+       @Override public boolean equals(Object o) {
+               if (!(o instanceof RouteHintHop)) return false;
+               return this.eq((RouteHintHop)o);
+       }
        /**
         * Serialize the RouteHintHop object into a byte array which can be read by RouteHintHop_read
         */
index f2168f4b711a0c59b8802e4addc4f68414177111..82e3761689c85294cbde184c8f7c5ea508626d8f 100644 (file)
@@ -160,6 +160,9 @@ public class RouteHop extends CommonBase {
                return ret;
        }
 
+       @Override public int hashCode() {
+               return (int)this.hash();
+       }
        /**
         * Checks if two RouteHops contain equal inner contents.
         * This ignores pointers and is_owned flags and looks at the values in fields.
@@ -171,6 +174,10 @@ public class RouteHop extends CommonBase {
                return ret;
        }
 
+       @Override public boolean equals(Object o) {
+               if (!(o instanceof RouteHop)) return false;
+               return this.eq((RouteHop)o);
+       }
        /**
         * Serialize the RouteHop object into a byte array which can be read by RouteHop_read
         */
index dfca382a83f2cc4330a0932bee6200ee195172ca..097a66f7dfbd40f261ac11e43a142f0b230957b9 100644 (file)
@@ -73,6 +73,10 @@ public class RoutingFees extends CommonBase {
                return ret;
        }
 
+       @Override public boolean equals(Object o) {
+               if (!(o instanceof RoutingFees)) return false;
+               return this.eq((RoutingFees)o);
+       }
        long clone_ptr() {
                long ret = bindings.RoutingFees_clone_ptr(this.ptr);
                return ret;
@@ -97,6 +101,9 @@ public class RoutingFees extends CommonBase {
                return ret;
        }
 
+       @Override public int hashCode() {
+               return (int)this.hash();
+       }
        /**
         * Serialize the RoutingFees object into a byte array which can be read by RoutingFees_read
         */
index 011cd86130d5d3dd1c804eda24a1415c60c5d489..20f95f38ab2c0a5d7515881763f65d8d32bfcb3e 100644 (file)
@@ -43,6 +43,9 @@ public class Sha256 extends CommonBase {
                return ret;
        }
 
+       @Override public int hashCode() {
+               return (int)this.hash();
+       }
        /**
         * Checks if two Sha256s contain equal inner contents.
         * This ignores pointers and is_owned flags and looks at the values in fields.
@@ -54,4 +57,8 @@ public class Sha256 extends CommonBase {
                return ret;
        }
 
+       @Override public boolean equals(Object o) {
+               if (!(o instanceof Sha256)) return false;
+               return this.eq((Sha256)o);
+       }
 }
index 8bc1550f1b86b9ebdb8d344cabac5cbb7f84834c..cf0830dec01954ce53f6e841b1125cab800cf3c6 100644 (file)
@@ -95,6 +95,10 @@ public class SignOrCreationError extends CommonBase {
                return ret;
        }
 
+       @Override public boolean equals(Object o) {
+               if (!(o instanceof SignOrCreationError)) return false;
+               return this.eq((SignOrCreationError)o);
+       }
        /**
         * Get the string representation of a SignOrCreationError object
         */
index f9fd6c3d99994142e38876e689a79ac891d8c3ed..2afaa1022295375b0b82bab2675cfb1121a1900a 100644 (file)
@@ -34,6 +34,10 @@ public class SignedRawInvoice extends CommonBase {
                return ret;
        }
 
+       @Override public boolean equals(Object o) {
+               if (!(o instanceof SignedRawInvoice)) return false;
+               return this.eq((SignedRawInvoice)o);
+       }
        long clone_ptr() {
                long ret = bindings.SignedRawInvoice_clone_ptr(this.ptr);
                return ret;
index 3edbde56f6b9f0801b05c48e7c4ab7bc0c7bf327..7f8593ba206a712e86189c6602b3fc7b490c8bc3 100644 (file)
@@ -139,6 +139,9 @@ public class SocketDescriptor extends CommonBase {
                return ret;
        }
 
+       @Override public int hashCode() {
+               return (int)this.hash();
+       }
        long clone_ptr() {
                long ret = bindings.SocketDescriptor_clone_ptr(this.ptr);
                return ret;
index c0e7403d42dd5ae98aa468c6bada321895826ad9..0b03d1984f288411a8fb8c490cac707a4d760a46 100644 (file)
@@ -117,4 +117,7 @@ public class WatchedOutput extends CommonBase {
                return ret;
        }
 
+       @Override public int hashCode() {
+               return (int)this.hash();
+       }
 }