Class ContactInfo

  • All Implemented Interfaces:

    public class ContactInfo
    extends java.lang.Object
    See Also:
    Serialized Form
    • Field Summary

      Modifier and Type Field Description
      protected java.lang.String contactType  
      protected java.lang.String value  
    • Constructor Summary

      Constructor Description
      ContactInfo​(ContactInfo copy)  
      ContactInfo​(java.lang.String contactType, java.lang.String value)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean equals​(java.lang.Object obj)  
      java.lang.String getContactType()
      The contact type.
      java.lang.String getValue()
      The actual contact information.
      void setContactType​(java.lang.String contactType)  
      void setValue​(java.lang.String value)  
      java.lang.String toString()  
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Field Detail

      • contactType

        protected java.lang.String contactType
      • value

        protected java.lang.String value
    • Constructor Detail

      • ContactInfo

        public ContactInfo​(ContactInfo copy)
      • ContactInfo

        public ContactInfo​(java.lang.String contactType,
                           java.lang.String value)
    • Method Detail

      • getContactType

        public java.lang.String getContactType()
        The contact type. This string should match the "contactType" field of a known ContactType
      • getValue

        public java.lang.String getValue()
        The actual contact information. For example, phone number or email address
      • setContactType

        public void setContactType​(java.lang.String contactType)
      • setValue

        public void setValue​(java.lang.String value)
      • toString

        public java.lang.String toString()
        toString in class java.lang.Object
      • equals

        public boolean equals​(java.lang.Object obj)
        equals in class java.lang.Object