@Value.Immutable public abstract class Net extends Object
| Constructor and Description |
|---|
Net() |
| Modifier and Type | Method and Description |
|---|---|
static ImmutableNet.Builder |
builder() |
static Net |
defaults() |
abstract Optional<String> |
getBindIp() |
abstract int |
getPort() |
InetAddress |
getServerAddress() |
abstract boolean |
isIpv6() |
static Net |
of(String bindIp,
int port,
boolean ipv6) |
Net |
withPort(int port) |
public abstract int getPort()
public abstract boolean isIpv6()
@Value.Auxiliary public Net withPort(int port)
@Value.Auxiliary public InetAddress getServerAddress() throws UnknownHostException
UnknownHostExceptionpublic static ImmutableNet.Builder builder()
public static Net defaults()
Copyright © 2023. All rights reserved.