public class InetSocketAddress extends QApiType
QApiTypeDescriptor{name=InetSocketAddress, data={host=str, port=str, *to=uint16, *ipv4=bool, *ipv6=bool}, innerTypes=null}
Modifier and Type | Field and Description |
---|---|
String |
host |
Boolean |
ipv4 |
Boolean |
ipv6 |
String |
port |
Integer |
to |
Constructor and Description |
---|
InetSocketAddress() |
InetSocketAddress(String host,
String port,
Integer to,
Boolean ipv4,
Boolean ipv6) |
Modifier and Type | Method and Description |
---|---|
Object |
getFieldByName(String name) |
List<String> |
getFieldNames() |
InetSocketAddress |
withHost(String value) |
InetSocketAddress |
withIpv4(Boolean value) |
InetSocketAddress |
withIpv6(Boolean value) |
InetSocketAddress |
withPort(String value) |
InetSocketAddress |
withTo(Integer value) |
toString
@CheckForNull public Integer to
@CheckForNull public Boolean ipv4
@CheckForNull public Boolean ipv6
public InetSocketAddress()
@Nonnull public InetSocketAddress withHost(String value)
@Nonnull public InetSocketAddress withPort(String value)
@Nonnull public InetSocketAddress withTo(Integer value)
@Nonnull public InetSocketAddress withIpv4(Boolean value)
@Nonnull public InetSocketAddress withIpv6(Boolean value)
public List<String> getFieldNames()
getFieldNames
in class QApiType
public Object getFieldByName(@Nonnull String name) throws NoSuchFieldException
getFieldByName
in class QApiType
NoSuchFieldException