public class NextHop
extends java.lang.Object
| Constructor and Description |
|---|
NextHop(org.onlab.packet.IpAddress ip,
NextHopData nextHopData)
Creates a new next hop.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object other) |
int |
hashCode() |
org.onlab.packet.IpAddress |
ip()
Returns the IP address of the next hop.
|
org.onosproject.net.ConnectPoint |
location()
Returns the location of the next hop.
|
org.onlab.packet.MacAddress |
mac()
Returns the MAC address of the next hop.
|
java.lang.String |
toString() |
public NextHop(org.onlab.packet.IpAddress ip,
NextHopData nextHopData)
ip - IP addressnextHopData - Next hop datapublic org.onlab.packet.IpAddress ip()
public org.onlab.packet.MacAddress mac()
public org.onosproject.net.ConnectPoint location()
public int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object other)
equals in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.Object