Class DeviceId

  • All Implemented Interfaces:
    NetworkResource

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

      Fields 
      Modifier and Type Field Description
      static DeviceId NONE
      Represents either no device, or an unspecified device.
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      protected DeviceId()  
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method 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.
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, wait, wait, wait
    • 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​(java.net.URI uri)
        Creates a device id using the supplied URI.
        Parameters:
        uri - device URI
        Returns:
        DeviceId
      • deviceId

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

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

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • equals

        public boolean equals​(java.lang.Object obj)
        Overrides:
        equals in class java.lang.Object
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object