public class NextHop
extends java.lang.Object
Constructor and Description |
---|
NextHop(IpAddress ip,
MacAddress mac,
NextHopGroupKey group)
Creates a new next hop.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object o) |
NextHopGroupKey |
group()
Returns the next hop group.
|
int |
hashCode() |
IpAddress |
ip()
Returns the next hop's IP address.
|
MacAddress |
mac()
Returns the next hop's MAC address.
|
java.lang.String |
toString() |
public NextHop(IpAddress ip, MacAddress mac, NextHopGroupKey group)
ip
- next hop's IP addressmac
- next hop's MAC addressgroup
- next hop's grouppublic IpAddress ip()
public MacAddress mac()
public NextHopGroupKey group()
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object