public final class Endpoint extends Object
| Constructor and Description |
|---|
Endpoint(InetAddress host,
int port) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
static Endpoint |
from(String host,
int port)
Returns an endpoint for the given host/port.
|
int |
hashCode() |
InetAddress |
host() |
int |
port() |
String |
toString() |
public Endpoint(InetAddress host, int port)
public static Endpoint from(String host, int port)
host - the hostport - the portpublic InetAddress host()
public int port()
Copyright © 2013–2018. All rights reserved.