return new Result_RouteHopDecodeErrorZ_OK(null, ptr);
} else {
return new Result_RouteHopDecodeErrorZ_Err(null, ptr);
return new Result_RouteHopDecodeErrorZ_OK(null, ptr);
} else {
return new Result_RouteHopDecodeErrorZ_Err(null, ptr);
private Result_RouteHopDecodeErrorZ_OK(Object _dummy, long ptr) {
super(_dummy, ptr);
long res = bindings.LDKCResult_RouteHopDecodeErrorZ_get_ok(ptr);
private Result_RouteHopDecodeErrorZ_OK(Object _dummy, long ptr) {
super(_dummy, ptr);
long res = bindings.LDKCResult_RouteHopDecodeErrorZ_get_ok(ptr);
private Result_RouteHopDecodeErrorZ_Err(Object _dummy, long ptr) {
super(_dummy, ptr);
long err = bindings.LDKCResult_RouteHopDecodeErrorZ_get_err(ptr);
private Result_RouteHopDecodeErrorZ_Err(Object _dummy, long ptr) {
super(_dummy, ptr);
long err = bindings.LDKCResult_RouteHopDecodeErrorZ_get_err(ptr);
*/
public static Result_RouteHopDecodeErrorZ ok(RouteHop o) {
long ret = bindings.CResult_RouteHopDecodeErrorZ_ok(o == null ? 0 : o.ptr & ~1);
*/
public static Result_RouteHopDecodeErrorZ ok(RouteHop o) {
long ret = bindings.CResult_RouteHopDecodeErrorZ_ok(o == null ? 0 : o.ptr & ~1);
*/
public static Result_RouteHopDecodeErrorZ err(DecodeError e) {
long ret = bindings.CResult_RouteHopDecodeErrorZ_err(e == null ? 0 : e.ptr & ~1);
*/
public static Result_RouteHopDecodeErrorZ err(DecodeError e) {
long ret = bindings.CResult_RouteHopDecodeErrorZ_err(e == null ? 0 : e.ptr & ~1);
+ /**
+ * Checks if the given object is currently in the success state
+ */
+ public boolean is_ok() {
+ boolean ret = bindings.CResult_RouteHopDecodeErrorZ_is_ok(this.ptr);
+ return ret;
+ }
+
+ long clone_ptr() {
+ long ret = bindings.CResult_RouteHopDecodeErrorZ_clone_ptr(this.ptr);
+ return ret;
+ }
+
/**
* Creates a new CResult_RouteHopDecodeErrorZ which has the same data as `orig`
* but with all dynamically-allocated buffers duplicated in new buffers.
*/
public Result_RouteHopDecodeErrorZ clone() {
long ret = bindings.CResult_RouteHopDecodeErrorZ_clone(this.ptr);
/**
* Creates a new CResult_RouteHopDecodeErrorZ which has the same data as `orig`
* but with all dynamically-allocated buffers duplicated in new buffers.
*/
public Result_RouteHopDecodeErrorZ clone() {
long ret = bindings.CResult_RouteHopDecodeErrorZ_clone(this.ptr);