Class Identifier<T>

    • Field Detail

      • identifier

        protected final T identifier
    • Constructor Detail

      • Identifier

        protected Identifier()
        Constructor for serialization.
      • Identifier

        protected Identifier​(T value)
        Constructs an identifier backed by the specified value.
        Parameters:
        value - the backing value
    • Method Detail

      • id

        public T id()
        Returns the backing identifier value.
        Returns:
        identifier
      • hashCode

        public int hashCode()
        Returns the hashcode of the identifier.
        Overrides:
        hashCode in class Object
        Returns:
        hashcode
      • equals

        public boolean equals​(Object obj)
        Compares two device key identifiers for equality.
        Overrides:
        equals in class Object
        Parameters:
        obj - to compare against
        Returns:
        true if the objects are equal, false otherwise.
      • toString

        public String toString()
        Returns a string representation of a DeviceKeyId.
        Overrides:
        toString in class Object
        Returns:
        string