blob: ef8c5ab1cec68e3b6c1cd7c476889e1f937e7909 [file] [log] [blame]
package org.onlab.onos.net;
import java.net.URI;
/**
* Immutable representation of a device identity.
*/
public final class DeviceId extends ElementId {
// Public construction is prohibited
private DeviceId(URI uri) {
super(uri);
}
/**
* Creates a device id using the supplied URI.
*
* @param uri device URI
*/
public static DeviceId deviceId(URI uri) {
return new DeviceId(uri);
}
/**
* Creates a device id using the supplied URI string.
*
* @param string device URI string
*/
public static DeviceId deviceId(String string) {
return deviceId(URI.create(string));
}
}