Class HostAndPort

java.lang.Object
io.vertx.mutiny.core.net.HostAndPort
All Implemented Interfaces:
MutinyDelegate

public class HostAndPort extends Object implements MutinyDelegate
A combination of host and port.

NOTE: This class has been automatically generated from the original non Mutiny-ified interface using Vert.x codegen.

  • Field Details

  • Constructor Details

    • HostAndPort

      public HostAndPort(io.vertx.core.net.HostAndPort delegate)
    • HostAndPort

      public HostAndPort(Object delegate)
  • Method Details

    • getDelegate

      public io.vertx.core.net.HostAndPort getDelegate()
      Specified by:
      getDelegate in interface MutinyDelegate
      Returns:
      the delegate used by this Mutiny object of generated type
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • create

      public static HostAndPort create(String host, int port)
      Parameters:
      host - the host value
      port - the port value
      Returns:
      the instance.
    • parseAuthority

      public static HostAndPort parseAuthority(String string, int schemePort)
      Parameters:
      string - the string to parse
      schemePort - the scheme port used when the optional port is not specified
      Returns:
      the parsed authority or null when the string does not represent a valid authority.
    • authority

      public static HostAndPort authority(String host, int port)
      Parameters:
      host - the host portion
      port - the port
      Returns:
      the instance
    • authority

      public static HostAndPort authority(String host)
      Parameters:
      host -
      Returns:
    • host

      public String host()
      Returns:
      the host value
    • port

      public int port()
      Returns:
      the port value or -1 when not specified
    • newInstance

      public static HostAndPort newInstance(io.vertx.core.net.HostAndPort arg)