Class Address

    • Constructor Detail

      • Address

        public Address()
        Default Constructor
      • Address

        public Address​(Address addressObj)
        Copy constructor
        Parameters:
        addressObj - reference to the object to be copied
    • Method Detail

      • toString

        public String toString()
        Stringifies the class
        Overrides:
        toString in class Object
        Returns:
        stringified class content
      • equals

        public boolean equals​(Object obj)
        Check for equality
        Overrides:
        equals in class Object
        Parameters:
        obj - Reference to the object to compare to
        Returns:
        true, if objects are equal, false otherwise
      • hashCode

        public int hashCode()
        Calculate code for hashing based on member contents
        Overrides:
        hashCode in class Object
        Returns:
        The calculated hash code