Class Address


  • public final class Address
    extends java.lang.Object
    Record describing user address details
    • Constructor Summary

      Constructors 
      Constructor Description
      Address​(java.lang.String houseNumber, java.lang.String addressLine1, java.lang.String addressLine2, java.lang.String country, java.lang.String postCode, java.lang.String postTown)  
    • Constructor Detail

      • Address

        public Address​(java.lang.String houseNumber,
                       java.lang.String addressLine1,
                       java.lang.String addressLine2,
                       java.lang.String country,
                       java.lang.String postCode,
                       java.lang.String postTown)
    • Method Detail

      • getHouseNumber

        public java.lang.String getHouseNumber()
        House number.
      • getAddressLine1

        public java.lang.String getAddressLine1()
        First line of address.
      • getAddressLine2

        public java.lang.String getAddressLine2()
        Second line of address or null.
      • getCountry

        public java.lang.String getCountry()
        Country code in ISO 3166-1 Alpha-2 format, e.g. 'GB'.
      • getPostCode

        public java.lang.String getPostCode()
        Post code.
      • getPostTown

        public java.lang.String getPostTown()
        Post town
      • equals

        public boolean equals​(java.lang.Object obj)
        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