Class DeviceId

  • All Implemented Interfaces:
    NetworkResource

    public final class DeviceId
    extends ElementId
    Immutable representation of a device identity.
    • Field Detail

      • NONE

        public static final DeviceId NONE
        Represents either no device, or an unspecified device.
    • Constructor Detail

      • DeviceId

        protected DeviceId()
    • Method Detail

      • deviceId

        public static DeviceId deviceId​(URI uri)
        Creates a device id using the supplied URI.
        Parameters:
        uri - device URI
        Returns:
        DeviceId
      • deviceId

        public static DeviceId deviceId​(String string)
        Creates a device id using the supplied URI string.
        Parameters:
        string - device URI string
        Returns:
        DeviceId
      • uri

        public URI uri()
        Returns the backing URI.
        Returns:
        backing URI
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object