Class PhoneNumberWithCid


  • public class PhoneNumberWithCid
    extends java.lang.Object
    PhoneNumberWithCid

    An object defining the message recipient telephone number with the message's custom identifier assigned by the User

    • Constructor Summary

      Constructors 
      Constructor Description
      PhoneNumberWithCid​(java.lang.String nr)  
      PhoneNumberWithCid​(java.lang.String nr, java.util.Optional<java.lang.String> cid)  
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      static PhoneNumberWithCid.Builder builder()  
      java.util.Optional<java.lang.String> cid()
      Custom message ID assigned by the User
      boolean equals​(java.lang.Object o)  
      int hashCode()  
      java.lang.String nr()
      A telephone number in international format (with a plus sign and the country code at the beginning, e.g.
      java.lang.String toString()  
      PhoneNumberWithCid withCid​(java.lang.String cid)
      Custom message ID assigned by the User
      PhoneNumberWithCid withCid​(java.util.Optional<java.lang.String> cid)
      Custom message ID assigned by the User
      PhoneNumberWithCid withNr​(java.lang.String nr)
      A telephone number in international format (with a plus sign and the country code at the beginning, e.g.
      • Methods inherited from class java.lang.Object

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

      • PhoneNumberWithCid

        public PhoneNumberWithCid​(java.lang.String nr,
                                  java.util.Optional<java.lang.String> cid)
      • PhoneNumberWithCid

        public PhoneNumberWithCid​(java.lang.String nr)
    • Method Detail

      • nr

        public java.lang.String nr()
        A telephone number in international format (with a plus sign and the country code at the beginning, e.g. +48 for Poland)
      • cid

        public java.util.Optional<java.lang.String> cid()
        Custom message ID assigned by the User
      • withNr

        public PhoneNumberWithCid withNr​(java.lang.String nr)
        A telephone number in international format (with a plus sign and the country code at the beginning, e.g. +48 for Poland)
      • withCid

        public PhoneNumberWithCid withCid​(java.lang.String cid)
        Custom message ID assigned by the User
      • withCid

        public PhoneNumberWithCid withCid​(java.util.Optional<java.lang.String> cid)
        Custom message ID assigned by the User
      • equals

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

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

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object