Class Identifier<T>

    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected T identifier  
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      protected Identifier()
      Constructor for serialization.
      protected Identifier​(T value)
      Constructs an identifier backed by the specified value.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean equals​(java.lang.Object obj)
      Compares two device key identifiers for equality.
      int hashCode()
      Returns the hashcode of the identifier.
      T id()
      Returns the backing identifier value.
      java.lang.String toString()
      Returns a string representation of a DeviceKeyId.
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, wait, wait, wait
    • 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 java.lang.Object
        Returns:
        hashcode
      • equals

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

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