From: Matt Corallo Date: Sun, 5 Dec 2021 23:39:42 +0000 (+0000) Subject: Update auto-updated Java files X-Git-Url: http://git.bitcoin.ninja/?a=commitdiff_plain;h=203c24073b82b2cc5478d976b19c6527927adac9;p=ldk-java Update auto-updated Java files --- diff --git a/src/main/java/org/ldk/structs/Balance.java b/src/main/java/org/ldk/structs/Balance.java index 429335b4..5ff50540 100644 --- a/src/main/java/org/ldk/structs/Balance.java +++ b/src/main/java/org/ldk/structs/Balance.java @@ -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); + } } diff --git a/src/main/java/org/ldk/structs/ChannelFeatures.java b/src/main/java/org/ldk/structs/ChannelFeatures.java index 40add60c..242bdbca 100644 --- a/src/main/java/org/ldk/structs/ChannelFeatures.java +++ b/src/main/java/org/ldk/structs/ChannelFeatures.java @@ -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; diff --git a/src/main/java/org/ldk/structs/ClosingTransaction.java b/src/main/java/org/ldk/structs/ClosingTransaction.java index 35de3c83..c702a11b 100644 --- a/src/main/java/org/ldk/structs/ClosingTransaction.java +++ b/src/main/java/org/ldk/structs/ClosingTransaction.java @@ -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 */ diff --git a/src/main/java/org/ldk/structs/Description.java b/src/main/java/org/ldk/structs/Description.java index 8e8f68ff..2d23e91c 100644 --- a/src/main/java/org/ldk/structs/Description.java +++ b/src/main/java/org/ldk/structs/Description.java @@ -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 diff --git a/src/main/java/org/ldk/structs/ExpiryTime.java b/src/main/java/org/ldk/structs/ExpiryTime.java index c476b6c6..6d18d7e0 100644 --- a/src/main/java/org/ldk/structs/ExpiryTime.java +++ b/src/main/java/org/ldk/structs/ExpiryTime.java @@ -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 diff --git a/src/main/java/org/ldk/structs/Fallback.java b/src/main/java/org/ldk/structs/Fallback.java index c82d85c1..18072ac7 100644 --- a/src/main/java/org/ldk/structs/Fallback.java +++ b/src/main/java/org/ldk/structs/Fallback.java @@ -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); + } } diff --git a/src/main/java/org/ldk/structs/InitFeatures.java b/src/main/java/org/ldk/structs/InitFeatures.java index cdc9a58b..bd3da5a6 100644 --- a/src/main/java/org/ldk/structs/InitFeatures.java +++ b/src/main/java/org/ldk/structs/InitFeatures.java @@ -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; diff --git a/src/main/java/org/ldk/structs/Invoice.java b/src/main/java/org/ldk/structs/Invoice.java index 8817ed41..b65dc306 100644 --- a/src/main/java/org/ldk/structs/Invoice.java +++ b/src/main/java/org/ldk/structs/Invoice.java @@ -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; diff --git a/src/main/java/org/ldk/structs/InvoiceFeatures.java b/src/main/java/org/ldk/structs/InvoiceFeatures.java index 6d075ce9..74edeee2 100644 --- a/src/main/java/org/ldk/structs/InvoiceFeatures.java +++ b/src/main/java/org/ldk/structs/InvoiceFeatures.java @@ -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; diff --git a/src/main/java/org/ldk/structs/InvoiceSignature.java b/src/main/java/org/ldk/structs/InvoiceSignature.java index c6f75910..24432466 100644 --- a/src/main/java/org/ldk/structs/InvoiceSignature.java +++ b/src/main/java/org/ldk/structs/InvoiceSignature.java @@ -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); + } } diff --git a/src/main/java/org/ldk/structs/MinFinalCltvExpiry.java b/src/main/java/org/ldk/structs/MinFinalCltvExpiry.java index 56f6937b..4f36de2c 100644 --- a/src/main/java/org/ldk/structs/MinFinalCltvExpiry.java +++ b/src/main/java/org/ldk/structs/MinFinalCltvExpiry.java @@ -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); + } } diff --git a/src/main/java/org/ldk/structs/MonitorUpdateId.java b/src/main/java/org/ldk/structs/MonitorUpdateId.java index bdc9e7f1..63a3e01e 100644 --- a/src/main/java/org/ldk/structs/MonitorUpdateId.java +++ b/src/main/java/org/ldk/structs/MonitorUpdateId.java @@ -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); + } } diff --git a/src/main/java/org/ldk/structs/NodeFeatures.java b/src/main/java/org/ldk/structs/NodeFeatures.java index 1a05b6d5..c5156fe8 100644 --- a/src/main/java/org/ldk/structs/NodeFeatures.java +++ b/src/main/java/org/ldk/structs/NodeFeatures.java @@ -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; diff --git a/src/main/java/org/ldk/structs/NodeId.java b/src/main/java/org/ldk/structs/NodeId.java index a0074a65..ce70f757 100644 --- a/src/main/java/org/ldk/structs/NodeId.java +++ b/src/main/java/org/ldk/structs/NodeId.java @@ -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 */ diff --git a/src/main/java/org/ldk/structs/OutPoint.java b/src/main/java/org/ldk/structs/OutPoint.java index a181f35f..24790117 100644 --- a/src/main/java/org/ldk/structs/OutPoint.java +++ b/src/main/java/org/ldk/structs/OutPoint.java @@ -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. */ diff --git a/src/main/java/org/ldk/structs/Payee.java b/src/main/java/org/ldk/structs/Payee.java index 317801b6..75dea48c 100644 --- a/src/main/java/org/ldk/structs/Payee.java +++ b/src/main/java/org/ldk/structs/Payee.java @@ -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 */ diff --git a/src/main/java/org/ldk/structs/PayeePubKey.java b/src/main/java/org/ldk/structs/PayeePubKey.java index 3f1ef322..e694e880 100644 --- a/src/main/java/org/ldk/structs/PayeePubKey.java +++ b/src/main/java/org/ldk/structs/PayeePubKey.java @@ -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); + } } diff --git a/src/main/java/org/ldk/structs/PositiveTimestamp.java b/src/main/java/org/ldk/structs/PositiveTimestamp.java index 3113fe77..538c5260 100644 --- a/src/main/java/org/ldk/structs/PositiveTimestamp.java +++ b/src/main/java/org/ldk/structs/PositiveTimestamp.java @@ -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; diff --git a/src/main/java/org/ldk/structs/PrivateRoute.java b/src/main/java/org/ldk/structs/PrivateRoute.java index c4f11b6c..704ab621 100644 --- a/src/main/java/org/ldk/structs/PrivateRoute.java +++ b/src/main/java/org/ldk/structs/PrivateRoute.java @@ -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 */ diff --git a/src/main/java/org/ldk/structs/RawDataPart.java b/src/main/java/org/ldk/structs/RawDataPart.java index 340fc191..bf1c56c8 100644 --- a/src/main/java/org/ldk/structs/RawDataPart.java +++ b/src/main/java/org/ldk/structs/RawDataPart.java @@ -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; diff --git a/src/main/java/org/ldk/structs/RawInvoice.java b/src/main/java/org/ldk/structs/RawInvoice.java index 00082036..39858da0 100644 --- a/src/main/java/org/ldk/structs/RawInvoice.java +++ b/src/main/java/org/ldk/structs/RawInvoice.java @@ -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; diff --git a/src/main/java/org/ldk/structs/RetryAttempts.java b/src/main/java/org/ldk/structs/RetryAttempts.java index af587789..0dafc598 100644 --- a/src/main/java/org/ldk/structs/RetryAttempts.java +++ b/src/main/java/org/ldk/structs/RetryAttempts.java @@ -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(); + } } diff --git a/src/main/java/org/ldk/structs/Route.java b/src/main/java/org/ldk/structs/Route.java index 453292e8..877c3046 100644 --- a/src/main/java/org/ldk/structs/Route.java +++ b/src/main/java/org/ldk/structs/Route.java @@ -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`]. * diff --git a/src/main/java/org/ldk/structs/RouteHint.java b/src/main/java/org/ldk/structs/RouteHint.java index 6ead7770..4e8f75e2 100644 --- a/src/main/java/org/ldk/structs/RouteHint.java +++ b/src/main/java/org/ldk/structs/RouteHint.java @@ -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 */ diff --git a/src/main/java/org/ldk/structs/RouteHintHop.java b/src/main/java/org/ldk/structs/RouteHintHop.java index 47f38b33..7bc7cde9 100644 --- a/src/main/java/org/ldk/structs/RouteHintHop.java +++ b/src/main/java/org/ldk/structs/RouteHintHop.java @@ -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 */ diff --git a/src/main/java/org/ldk/structs/RouteHop.java b/src/main/java/org/ldk/structs/RouteHop.java index f2168f4b..82e37616 100644 --- a/src/main/java/org/ldk/structs/RouteHop.java +++ b/src/main/java/org/ldk/structs/RouteHop.java @@ -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 */ diff --git a/src/main/java/org/ldk/structs/RoutingFees.java b/src/main/java/org/ldk/structs/RoutingFees.java index dfca382a..097a66f7 100644 --- a/src/main/java/org/ldk/structs/RoutingFees.java +++ b/src/main/java/org/ldk/structs/RoutingFees.java @@ -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 */ diff --git a/src/main/java/org/ldk/structs/Sha256.java b/src/main/java/org/ldk/structs/Sha256.java index 011cd861..20f95f38 100644 --- a/src/main/java/org/ldk/structs/Sha256.java +++ b/src/main/java/org/ldk/structs/Sha256.java @@ -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); + } } diff --git a/src/main/java/org/ldk/structs/SignOrCreationError.java b/src/main/java/org/ldk/structs/SignOrCreationError.java index 8bc1550f..cf0830de 100644 --- a/src/main/java/org/ldk/structs/SignOrCreationError.java +++ b/src/main/java/org/ldk/structs/SignOrCreationError.java @@ -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 */ diff --git a/src/main/java/org/ldk/structs/SignedRawInvoice.java b/src/main/java/org/ldk/structs/SignedRawInvoice.java index f9fd6c3d..2afaa102 100644 --- a/src/main/java/org/ldk/structs/SignedRawInvoice.java +++ b/src/main/java/org/ldk/structs/SignedRawInvoice.java @@ -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; diff --git a/src/main/java/org/ldk/structs/SocketDescriptor.java b/src/main/java/org/ldk/structs/SocketDescriptor.java index 3edbde56..7f8593ba 100644 --- a/src/main/java/org/ldk/structs/SocketDescriptor.java +++ b/src/main/java/org/ldk/structs/SocketDescriptor.java @@ -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; diff --git a/src/main/java/org/ldk/structs/WatchedOutput.java b/src/main/java/org/ldk/structs/WatchedOutput.java index c0e7403d..0b03d198 100644 --- a/src/main/java/org/ldk/structs/WatchedOutput.java +++ b/src/main/java/org/ldk/structs/WatchedOutput.java @@ -117,4 +117,7 @@ public class WatchedOutput extends CommonBase { return ret; } + @Override public int hashCode() { + return (int)this.hash(); + } }