X-Git-Url: http://git.bitcoin.ninja/index.cgi?p=ldk-java;a=blobdiff_plain;f=src%2Fmain%2Fjava%2Forg%2Fldk%2Fstructs%2FUserConfig.java;h=3f5c2ba0dcbbb496a36906b5004ca81ab82550ae;hp=f3657641ef4e2f08ec580af27ac9fb65808e6918;hb=b6cc0960eaee5a5bbc7fde79a56152d6dcd649d8;hpb=fb06c6af463da9aa188980c750f787f5e936634a diff --git a/src/main/java/org/ldk/structs/UserConfig.java b/src/main/java/org/ldk/structs/UserConfig.java index f3657641..3f5c2ba0 100644 --- a/src/main/java/org/ldk/structs/UserConfig.java +++ b/src/main/java/org/ldk/structs/UserConfig.java @@ -78,7 +78,7 @@ public class UserConfig extends CommonBase { /** * Constructs a new UserConfig given each field */ - public static UserConfig constructor_new(ChannelHandshakeConfig own_channel_config_arg, ChannelHandshakeLimits peer_channel_config_limits_arg, ChannelConfig channel_options_arg) { + public static UserConfig of(ChannelHandshakeConfig own_channel_config_arg, ChannelHandshakeLimits peer_channel_config_limits_arg, ChannelConfig channel_options_arg) { long ret = bindings.UserConfig_new(own_channel_config_arg == null ? 0 : own_channel_config_arg.ptr & ~1, peer_channel_config_limits_arg == null ? 0 : peer_channel_config_limits_arg.ptr & ~1, channel_options_arg == null ? 0 : channel_options_arg.ptr & ~1); UserConfig ret_hu_conv = new UserConfig(null, ret); ret_hu_conv.ptrs_to.add(ret_hu_conv); @@ -101,7 +101,7 @@ public class UserConfig extends CommonBase { /** * Creates a "default" UserConfig. See struct and individual field documentaiton for details on which values are used. */ - public static UserConfig constructor_default() { + public static UserConfig with_default() { long ret = bindings.UserConfig_default(); UserConfig ret_hu_conv = new UserConfig(null, ret); ret_hu_conv.ptrs_to.add(ret_hu_conv);