public class OspfRouterId
extends java.lang.Object
| Constructor and Description |
|---|
OspfRouterId(org.onlab.packet.IpAddress ipAddress)
Creates an instance of OSPF router id.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object other) |
int |
hashCode() |
org.onlab.packet.IpAddress |
ipAddress()
Returns the IP address.
|
static OspfRouterId |
ospfRouterId(org.onlab.packet.IpAddress ipAddress)
Creates an instance from ip address.
|
static OspfRouterId |
ospfRouterId(java.net.URI uri)
Creates OSPF router id instance from the URI.
|
java.lang.String |
toString() |
static java.net.URI |
uri(org.onlab.packet.IpAddress ipAddress)
Returns device URI from the given IP address.
|
static java.net.URI |
uri(OspfRouterId ospfRouterId)
Returns device URI from the given router id.
|
public OspfRouterId(org.onlab.packet.IpAddress ipAddress)
ipAddress - IP address of the routerpublic static OspfRouterId ospfRouterId(org.onlab.packet.IpAddress ipAddress)
ipAddress - IP addresspublic static OspfRouterId ospfRouterId(java.net.URI uri)
uri - device URIpublic static java.net.URI uri(OspfRouterId ospfRouterId)
ospfRouterId - router id instancepublic static java.net.URI uri(org.onlab.packet.IpAddress ipAddress)
ipAddress - device IP addresspublic org.onlab.packet.IpAddress ipAddress()
public java.lang.String toString()
toString in class java.lang.Objectpublic boolean equals(java.lang.Object other)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Object