public class IpPortPair extends Object implements Comparable<IpPortPair>
Modifier and Type | Class and Description |
---|---|
static class |
IpPortPair.Builder<T extends IpPortPair.Builder<T>> |
Modifier | Constructor and Description |
---|---|
protected |
IpPortPair(Ip ip,
int port) |
Modifier and Type | Method and Description |
---|---|
static IpPortPair.Builder<?> |
builder() |
int |
compareTo(IpPortPair o) |
boolean |
equals(Object obj) |
Ip |
getIp() |
int |
getPort() |
int |
hashCode() |
protected com.google.common.base.MoreObjects.ToStringHelper |
string() |
IpPortPair.Builder<?> |
toBuilder() |
String |
toString() |
@ConstructorProperties(value={"ip","port"}) protected IpPortPair(Ip ip, int port)
public static IpPortPair.Builder<?> builder()
public IpPortPair.Builder<?> toBuilder()
public Ip getIp()
public int getPort()
protected com.google.common.base.MoreObjects.ToStringHelper string()
public int compareTo(IpPortPair o)
compareTo
in interface Comparable<IpPortPair>
Copyright © 2009-2021 The Apache Software Foundation. All Rights Reserved.