Class ServiceId

    • Method Detail

      • getXmlElementName

        public abstract String getXmlElementName()
        Gets the name of the XML element.
        Returns:
        XML element name.
      • assign

        public void assign​(ServiceId source)
        Assigns from existing id.
        Parameters:
        source - The source.
      • isValid

        public boolean isValid()
        True if this instance is valid, false otherthise.
        Returns:
        true if this instance is valid; otherwise,false
      • getUniqueId

        public String getUniqueId()
        Gets the unique Id of the Exchange object.
        Returns:
        unique Id of the Exchange object.
      • setUniqueId

        public void setUniqueId​(String uniqueId)
        Sets the unique Id of the Exchange object.
        Parameters:
        uniqueId - unique Id of the Exchange object.
      • getChangeKey

        public String getChangeKey()
        Gets the change key associated with the Exchange object. The change key represents the version of the associated item or folder.
        Returns:
        change key associated with the Exchange object.
      • setChangeKey

        public void setChangeKey​(String changeKey)
        Sets the change key associated with the Exchange object. The change key represents the version of the associated item or folder.
        Parameters:
        changeKey - change key associated with the Exchange object.
      • sameIdAndChangeKey

        public boolean sameIdAndChangeKey​(ServiceId other)
        Determines whether two ServiceId instances are equal (including ChangeKeys).
        Parameters:
        other - The ServiceId to compare with the current ServiceId.
        Returns:
        true if equal otherwise false.
      • equals

        public boolean equals​(Object obj)
        Determines whether the specified instance is equal to the current instance. We do not consider the ChangeKey for ServiceId.Equals.
        Overrides:
        equals in class Object
        Parameters:
        obj - The object to compare with the current instance
        Returns:
        true if the specified object is equal to the current instance, otherwise, false.
      • hashCode

        public int hashCode()
        Serves as a hash function for a particular type. We do not consider the change key in the hash code computation.
        Overrides:
        hashCode in class Object
        Returns:
        A hash code for the current
      • toString

        public String toString()
        Returns a string that represents the current instance.
        Overrides:
        toString in class Object
        Returns:
        A string that represents the current instance.