- public boolean eq(RawDataPart b) {
- boolean ret = bindings.RawDataPart_eq(this.ptr, b == null ? 0 : b.ptr & ~1);
- this.ptrs_to.add(b);
+ public boolean eq(org.ldk.structs.RawDataPart b) {
+ boolean ret = bindings.RawDataPart_eq(this.ptr, b == null ? 0 : b.ptr);
+ Reference.reachabilityFence(this);
+ Reference.reachabilityFence(b);
+ if (this != null) { this.ptrs_to.add(b); };
+ 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);
+ Reference.reachabilityFence(this);