Class CommunicationIdentifier

    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean equals​(java.lang.Object that)  
      static CommunicationIdentifier fromRawId​(java.lang.String rawId)
      When storing rawIds, use this function to restore the identifier that was encoded in the rawId.
      java.lang.String getRawId()
      Returns the rawId for a given CommunicationIdentifier.
      int hashCode()  
      protected CommunicationIdentifier setRawId​(java.lang.String rawId)
      Set full id of the identifier RawId is the encoded format for identifiers to store in databases or as stable keys in general.
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • CommunicationIdentifier

        public CommunicationIdentifier()
    • Method Detail

      • fromRawId

        public static CommunicationIdentifier fromRawId​(java.lang.String rawId)
        When storing rawIds, use this function to restore the identifier that was encoded in the rawId.
        Parameters:
        rawId - raw id.
        Returns:
        CommunicationIdentifier
        Throws:
        java.lang.IllegalArgumentException - raw id is null or empty.
      • getRawId

        public java.lang.String getRawId()
        Returns the rawId for a given CommunicationIdentifier. You can use the rawId for encoding the identifier and then use it as a key in a database.
        Returns:
        raw id
      • setRawId

        protected CommunicationIdentifier setRawId​(java.lang.String rawId)
        Set full id of the identifier RawId is the encoded format for identifiers to store in databases or as stable keys in general.
        Parameters:
        rawId - full id of the identifier
        Returns:
        CommunicationIdentifier object itself
      • equals

        public boolean equals​(java.lang.Object that)
        Overrides:
        equals in class java.lang.Object
      • hashCode

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