Class Person

    • Constructor Summary

      Constructors 
      Constructor Description
      Person​(java.lang.String addressLine, java.lang.String zip, java.lang.String country)
      Constructor for Person with specified values.
    • Method Summary

      Modifier and Type Method Description
      int compareTo​(UntypedData datatype)
      boolean equals​(java.lang.Object obj)  
      protected java.lang.String formatEmptyString​(java.lang.String string)
      Format address strings in person object set empty strings to n/a
      java.lang.String getAddressLine()
      Getter for the field adress_line.
      java.lang.String getCountry()
      Getter for the field country.
      java.lang.String getZip()
      Getter for the field zip.
      int hashCode()  
      java.lang.String toString()
      • Methods inherited from class java.lang.Object

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

      • Person

        public Person​(java.lang.String addressLine,
                      java.lang.String zip,
                      java.lang.String country)
        Constructor for Person with specified values.
        Parameters:
        addressLine - address of the Person.
        zip - zip of the Person.
        country - country of the Person.
    • Method Detail

      • equals

        public boolean equals​(java.lang.Object obj)
        Overrides:
        equals in class UntypedData
      • formatEmptyString

        protected java.lang.String formatEmptyString​(java.lang.String string)
        Format address strings in person object set empty strings to n/a
        Parameters:
        string - the to format
        Returns:
        formated address string
      • getAddressLine

        public java.lang.String getAddressLine()
        Getter for the field adress_line.
        Returns:
        the address line
      • getCountry

        public java.lang.String getCountry()
        Getter for the field country.
        Returns:
        the country
      • getZip

        public java.lang.String getZip()
        Getter for the field zip.
        Returns:
        the zip