Update to support None
[ldk-java] / src / main / java / org / ldk / structs / PeerHandleError.java
1 package org.ldk.structs;
2
3 import org.ldk.impl.bindings;
4 import org.ldk.enums.*;
5
6 public class PeerHandleError extends CommonBase {
7         PeerHandleError(Object _dummy, long ptr) { super(ptr); }
8         @Override @SuppressWarnings("deprecation")
9         protected void finalize() throws Throwable {
10                 bindings.PeerHandleError_free(ptr); super.finalize();
11         }
12
13         public boolean get_no_connection_possible(PeerHandleError this_ptr) {
14                 boolean ret = bindings.PeerHandleError_get_no_connection_possible(this_ptr == null ? 0 : this_ptr.ptr & ~1);
15                 this.ptrs_to.add(this_ptr);
16                 return ret;
17         }
18
19         public void set_no_connection_possible(PeerHandleError this_ptr, boolean val) {
20                 bindings.PeerHandleError_set_no_connection_possible(this_ptr == null ? 0 : this_ptr.ptr & ~1, val);
21                 this.ptrs_to.add(this_ptr);
22         }
23
24         public PeerHandleError(boolean no_connection_possible_arg) {
25                 super(bindings.PeerHandleError_new(no_connection_possible_arg));
26         }
27
28 }