public final class Dpid extends Object
| Constructor and Description |
|---|
Dpid()
Default constructor.
|
Dpid(long value)
Constructor from a long value.
|
Dpid(String value)
Constructor from a string.
|
| Modifier and Type | Method and Description |
|---|---|
static Dpid |
dpid(URI uri)
Returns DPID created from the given device URI.
|
boolean |
equals(Object other) |
int |
hashCode() |
String |
toString()
Convert the DPID value to a ':' separated hexadecimal string.
|
static URI |
uri(Dpid dpid)
Produces device URI from the given DPID.
|
static URI |
uri(long value)
Produces device URI from the given DPID long.
|
long |
value()
Get the value of the DPID.
|
public Dpid()
public Dpid(long value)
value - the value to use.public Dpid(String value)
value - the value to use.public long value()
public String toString()
public static Dpid dpid(URI uri)
uri - device URIpublic static URI uri(Dpid dpid)
dpid - device dpidpublic static URI uri(long value)
value - device dpid as long