Package org.onosproject.routing
Class NextHop
- java.lang.Object
 - 
- org.onosproject.routing.NextHop
 
 
- 
public class NextHop extends java.lang.ObjectRepresents a next hop for routing, whose MAC address has already been resolved. 
- 
- 
Constructor Summary
Constructors Constructor Description NextHop(IpAddress ip, MacAddress mac, NextHopGroupKey group)Creates a new next hop. 
- 
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object o)NextHopGroupKeygroup()Returns the next hop group.inthashCode()IpAddressip()Returns the next hop's IP address.MacAddressmac()Returns the next hop's MAC address.java.lang.StringtoString() 
 - 
 
- 
- 
Constructor Detail
- 
NextHop
public NextHop(IpAddress ip, MacAddress mac, NextHopGroupKey group)
Creates a new next hop.- Parameters:
 ip- next hop's IP addressmac- next hop's MAC addressgroup- next hop's group
 
 - 
 
- 
Method Detail
- 
ip
public IpAddress ip()
Returns the next hop's IP address.- Returns:
 - next hop's IP address
 
 
- 
mac
public MacAddress mac()
Returns the next hop's MAC address.- Returns:
 - next hop's MAC address
 
 
- 
group
public NextHopGroupKey group()
Returns the next hop group.- Returns:
 - group
 
 
- 
equals
public boolean equals(java.lang.Object o)
- Overrides:
 equalsin classjava.lang.Object
 
- 
hashCode
public int hashCode()
- Overrides:
 hashCodein classjava.lang.Object
 
- 
toString
public java.lang.String toString()
- Overrides:
 toStringin classjava.lang.Object
 
 - 
 
 -