public class DeviceId extends Object implements Distributable, ElementId, Serializable
Modifier and Type | Field and Description |
---|---|
static DeviceId |
NONE
A static value used to indicate an unknown/unnecessary device ID.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
String |
fingerprint()
Returns the fingerprint for this device ID.
|
int |
hashCode() |
String |
toString() |
static DeviceId |
valueOf(DataPathId dpid)
Returns the value of the given datapath ID as a device ID.
|
static DeviceId |
valueOf(String fingerprint)
Returns the value of the given fingerprint as a device ID.
|
public static final DeviceId NONE
public static DeviceId valueOf(String fingerprint)
fingerprint
- the given fingerprintpublic static DeviceId valueOf(DataPathId dpid)
dpid
- the given datapath IDpublic String fingerprint()
Copyright © 2015. All Rights Reserved.