Class Address

    • Constructor Detail

      • Address

        public Address​(String streetNumber,
                       String street,
                       String postalCode,
                       String city,
                       String suburb,
                       String state,
                       String country,
                       TwoLetterCountryCode countryCode,
                       String formattedAddress)
        Instantiates a new address.
        Parameters:
        streetNumber - the street number
        street - the street
        postalCode - the postal code
        city - the city
        suburb - the suburb
        state - the state
        country - the country
        countryCode - the country code
        formattedAddress - the formatted address
    • Method Detail

      • getStreetNumber

        public String getStreetNumber()
        The street number.
        Returns:
        streetNumber street number
      • setStreetNumber

        public void setStreetNumber​(String streetNumber)
        Sets street number.
        Parameters:
        streetNumber - the street number
      • getStreet

        public String getStreet()
        The street name.
        Returns:
        street street
      • setStreet

        public void setStreet​(String street)
        Sets street.
        Parameters:
        street - the street
      • getPostalCode

        public String getPostalCode()
        The postal code.
        Returns:
        postalCode postal code
      • setPostalCode

        public void setPostalCode​(String postalCode)
        Sets postal code.
        Parameters:
        postalCode - the postal code
      • getCity

        public String getCity()
        The city name.
        Returns:
        city city
      • setCity

        public void setCity​(String city)
        Sets city.
        Parameters:
        city - the city
      • getSuburb

        public String getSuburb()
        The suburb name.
        Returns:
        suburb suburb
      • setSuburb

        public void setSuburb​(String suburb)
        Sets suburb.
        Parameters:
        suburb - the suburb
      • getState

        public String getState()
        The state name.
        Returns:
        state state
      • setState

        public void setState​(String state)
        Sets state.
        Parameters:
        state - the state
      • getCountry

        public String getCountry()
        The country name.
        Returns:
        country country
      • setCountry

        public void setCountry​(String country)
        Sets country.
        Parameters:
        country - the country
      • getCountryCode

        public TwoLetterCountryCode getCountryCode()
        The country code.
        Returns:
        countryCode country code
      • setCountryCode

        public void setCountryCode​(TwoLetterCountryCode countryCode)
        Sets country code.
        Parameters:
        countryCode - the country code
      • getFormattedAddress

        public String getFormattedAddress()
        The street number.
        Returns:
        formattedAddress formatted address
      • setFormattedAddress

        public void setFormattedAddress​(String formattedAddress)
        Sets formatted address.
        Parameters:
        formattedAddress - the formatted address