[Java] Properly convert strings to/from Modified UTF-8
[ldk-java] / src / main / java / org / ldk / structs / NetAddress.java
index f4f729ffc3c11686e6441b9838faa6291613daae..9714ec7c1e866130b2346cdae8ea0d4b5d6d7864 100644 (file)
@@ -9,7 +9,7 @@ import javax.annotation.Nullable;
 
 
 /**
- * An address which can be used to connect to a remote peer
+ * An address which can be used to connect to a remote peer.
  */
 @SuppressWarnings("unchecked") // We correctly assign various generic arrays
 public class NetAddress extends CommonBase {
@@ -90,7 +90,8 @@ public class NetAddress extends CommonBase {
        }
        /**
         * A new-style Tor onion address/port on which the peer is listening.
-        * To create the human-readable \"hostname\", concatenate ed25519_pubkey, checksum, and version,
+        * 
+        * To create the human-readable \"hostname\", concatenate the ED25519 pubkey, checksum, and version,
         * wrap as base32 and append \".onion\".
         */
        public final static class OnionV3 extends NetAddress {
@@ -213,7 +214,7 @@ public class NetAddress extends CommonBase {
        /**
         * Utility method to constructs a new Hostname-variant NetAddress
         */
-       public static NetAddress hostname(Hostname hostname, short port) {
+       public static NetAddress hostname(org.ldk.structs.Hostname hostname, short port) {
                long ret = bindings.NetAddress_hostname(hostname == null ? 0 : hostname.ptr, port);
                Reference.reachabilityFence(hostname);
                Reference.reachabilityFence(port);
@@ -228,7 +229,7 @@ public class NetAddress extends CommonBase {
         * Checks if two NetAddresss contain equal inner contents.
         * This ignores pointers and is_owned flags and looks at the values in fields.
         */
-       public boolean eq(NetAddress b) {
+       public boolean eq(org.ldk.structs.NetAddress b) {
                boolean ret = bindings.NetAddress_eq(this.ptr, b == null ? 0 : b.ptr);
                Reference.reachabilityFence(this);
                Reference.reachabilityFence(b);