@Value.Immutable public abstract class ServerAddress extends Object
| Constructor and Description |
|---|
ServerAddress() |
| Modifier and Type | Method and Description |
|---|---|
static ImmutableServerAddress.Builder |
builder() |
static String |
defaultHost() |
static int |
defaultPort() |
String |
getHost() |
int |
getPort() |
static ServerAddress |
of(InetAddress serverAddress,
int port) |
static ServerAddress |
of(String host,
int port) |
String |
toString() |
@Value.Default public String getHost()
@Value.Default public int getPort()
public static ImmutableServerAddress.Builder builder()
public static String defaultHost()
public static int defaultPort()
public static ServerAddress of(InetAddress serverAddress, int port)
public static ServerAddress of(String host, int port)
Copyright © 2022. All rights reserved.