public final class AddressPair extends Object
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
int |
hashCode() |
org.onlab.packet.IpAddress |
ip()
Returns the IP address.
|
org.onlab.packet.MacAddress |
mac()
Returns the MAC address.
|
static AddressPair |
of(org.onlab.packet.IpAddress ip,
org.onlab.packet.MacAddress mac)
Returns an address pair instance with the given ip and mac address.
|
String |
toString() |
public org.onlab.packet.IpAddress ip()
public org.onlab.packet.MacAddress mac()
public static AddressPair of(org.onlab.packet.IpAddress ip, org.onlab.packet.MacAddress mac)
ip - ip addressmac - mac addressCopyright © 2018. All rights reserved.