public class NextHop extends Object
Constructor and Description |
---|
NextHop(IpAddress ip,
MacAddress mac,
NextHopGroupKey group)
Creates a new next hop.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(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.
|
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()