@Beta public class RouteInfo extends Object
| Constructor and Description |
|---|
RouteInfo(org.onlab.packet.IpPrefix prefix,
ResolvedRoute bestRoute,
Set<ResolvedRoute> allRoutes)
Creates a new route info object.
|
| Modifier and Type | Method and Description |
|---|---|
Set<ResolvedRoute> |
allRoutes()
Returns all routes for this prefix.
|
Optional<ResolvedRoute> |
bestRoute()
Returns the best route for this prefix if one exists.
|
boolean |
equals(Object other) |
int |
hashCode() |
org.onlab.packet.IpPrefix |
prefix()
Returns the IP prefix.
|
@Beta
public RouteInfo(org.onlab.packet.IpPrefix prefix,
ResolvedRoute bestRoute,
Set<ResolvedRoute> allRoutes)
prefix - IP prefixbestRoute - best route for this prefix if one existsallRoutes - all known routes for this prefixpublic org.onlab.packet.IpPrefix prefix()
public Optional<ResolvedRoute> bestRoute()
public Set<ResolvedRoute> allRoutes()