Package io.vertx.mutiny.core.net
Class HostAndPort
java.lang.Object
io.vertx.mutiny.core.net.HostAndPort
- All Implemented Interfaces:
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 Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionHostAndPort
(io.vertx.core.net.HostAndPort delegate) HostAndPort
(Object delegate) -
Method Summary
Modifier and TypeMethodDescriptionstatic HostAndPort
static HostAndPort
static HostAndPort
boolean
io.vertx.core.net.HostAndPort
int
hashCode()
host()
static HostAndPort
newInstance
(io.vertx.core.net.HostAndPort arg) static HostAndPort
parseAuthority
(String string, int schemePort) int
port()
toString()
-
Field Details
-
__TYPE_ARG
-
-
Constructor Details
-
HostAndPort
public HostAndPort(io.vertx.core.net.HostAndPort delegate) -
HostAndPort
-
-
Method Details
-
getDelegate
public io.vertx.core.net.HostAndPort getDelegate()- Specified by:
getDelegate
in interfaceMutinyDelegate
- Returns:
- the delegate used by this Mutiny object of generated type
-
toString
-
equals
-
hashCode
public int hashCode() -
create
- Parameters:
host
- the host valueport
- the port value- Returns:
- the instance.
-
parseAuthority
- Parameters:
string
- the string to parseschemePort
- the scheme port used when the optional port is not specified- Returns:
- the parsed authority or
null
when thestring
does not represent a valid authority.
-
authority
- Parameters:
host
- the host portionport
- the port- Returns:
- the instance
-
authority
- Parameters:
host
-- Returns:
-
host
- Returns:
- the host value
-
port
public int port()- Returns:
- the port value or
-1
when not specified
-
newInstance
-