public final class DeviceId extends ElementId
Modifier and Type | Field and Description |
---|---|
static DeviceId |
NONE
Represents either no device, or an unspecified device.
|
Modifier | Constructor and Description |
---|---|
protected |
DeviceId() |
Modifier and Type | Method and Description |
---|---|
static DeviceId |
deviceId(java.lang.String string)
Creates a device id using the supplied URI string.
|
static DeviceId |
deviceId(java.net.URI uri)
Creates a device id using the supplied URI.
|
boolean |
equals(java.lang.Object obj) |
int |
hashCode() |
java.lang.String |
toString() |
java.net.URI |
uri()
Returns the backing URI.
|
public static final DeviceId NONE
public static DeviceId deviceId(java.net.URI uri)
uri
- device URIpublic static DeviceId deviceId(java.lang.String string)
string
- device URI stringpublic java.net.URI uri()
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object