X-Git-Url: http://git.bitcoin.ninja/index.cgi?p=ldk-java;a=blobdiff_plain;f=ts%2Fstructs%2FMonitorUpdateId.mts;h=030a25b9419247b71bb4e4f211cb7a66d8709d36;hp=9ce999c4441cad51f11a5422048a2701723630d0;hb=c629a01650402c8e2f9b9db8ced9ed63ce687727;hpb=d1d0121c000b713c10fd0bedd249eb8dda2e4db7 diff --git a/ts/structs/MonitorUpdateId.mts b/ts/structs/MonitorUpdateId.mts index 9ce999c4..030a25b9 100644 --- a/ts/structs/MonitorUpdateId.mts +++ b/ts/structs/MonitorUpdateId.mts @@ -281,6 +281,9 @@ import CommonBase from './CommonBase.mjs'; import * as bindings from '../bindings.mjs' +/** + * An opaque identifier describing a specific [`Persist`] method call. + */ export class MonitorUpdateId extends CommonBase { /* @internal */ public constructor(_dummy: object, ptr: number) { @@ -292,6 +295,9 @@ export class MonitorUpdateId extends CommonBase { return ret; } + /** + * Creates a copy of the MonitorUpdateId + */ public clone(): MonitorUpdateId { const ret: number = bindings.MonitorUpdateId_clone(this.ptr); const ret_hu_conv: MonitorUpdateId = new MonitorUpdateId(null, ret); @@ -299,11 +305,19 @@ export class MonitorUpdateId extends CommonBase { return ret_hu_conv; } + /** + * Checks if two MonitorUpdateIds contain equal inner contents. + */ public hash(): bigint { const ret: bigint = bindings.MonitorUpdateId_hash(this.ptr); return ret; } + /** + * Checks if two MonitorUpdateIds 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 eq(b: MonitorUpdateId): boolean { const ret: boolean = bindings.MonitorUpdateId_eq(this.ptr, b == null ? 0 : CommonBase.get_ptr_of(b) & ~1); CommonBase.add_ref_from(this, b);