Class ResourceGroup

    • Constructor Detail

      • ResourceGroup

        protected ResourceGroup()
        Constructor for serializer.
      • ResourceGroup

        protected ResourceGroup​(long value)
        Constructs the ID corresponding to a given long value.
        Parameters:
        value - the underlying value of this ID
    • Method Detail

      • of

        public static ResourceGroup of​(long value)
        Creates a resource group identifier from the specified long representation.
        Parameters:
        value - long value
        Returns:
        resource group identifier
      • of

        public static ResourceGroup of​(String value)
        Creates a resource group identifier from the specified string representation. Warning: it is caller responsibility to make sure the hashed value of value is unique.
        Parameters:
        value - string value
        Returns:
        resource group identifier
      • fingerprint

        public long fingerprint()
        Returns the backing value.
        Returns:
        the value
      • toString

        public String toString()
        Description copied from class: Identifier
        Returns a string representation of a DeviceKeyId.
        Overrides:
        toString in class Identifier<Long>
        Returns:
        string
      • hashCode

        public int hashCode()
        Description copied from class: Identifier
        Returns the hashcode of the identifier.
        Overrides:
        hashCode in class Identifier<Long>
        Returns:
        hashcode
      • equals

        public boolean equals​(Object obj)
        Description copied from class: Identifier
        Compares two device key identifiers for equality.
        Overrides:
        equals in class Identifier<Long>
        Parameters:
        obj - to compare against
        Returns:
        true if the objects are equal, false otherwise.