public static final class HostAndPort.Builder extends java.lang.Object implements com.ardikars.common.util.Builder<HostAndPort,java.lang.Void>
| Constructor and Description |
|---|
Builder() |
| Modifier and Type | Method and Description |
|---|---|
HostAndPort.Builder |
address(InetAddress address)
Host address.
|
HostAndPort |
build()
Build
Host object. |
HostAndPort |
build(java.lang.Void value) |
HostAndPort.Builder |
hostName(java.lang.String hostName)
Host name.
|
HostAndPort.Builder |
port(int port)
Host port.
|
public HostAndPort.Builder hostName(java.lang.String hostName)
hostName - host name.Builder object.public HostAndPort.Builder address(InetAddress address)
address - host address.Builder object.public HostAndPort.Builder port(int port)
port - port.Builder object.public HostAndPort build()
Host object.build in interface com.ardikars.common.util.Builder<HostAndPort,java.lang.Void>Host object.public HostAndPort build(java.lang.Void value)
build in interface com.ardikars.common.util.Builder<HostAndPort,java.lang.Void>Copyright © 2017 - 2018 ardikars.com. All rights reserved.