Class TenantInfoAddress


  • public class TenantInfoAddress
    extends java.lang.Object
    Address formats are quite diverse across the world both in therms of what fields are used, named and the order of them. To be generic a little future proof the address fields here are a mix of free text (address lines) and fixed fields. The address lines can be street address, P.O box, c/o name, apartment, suite, unit, building floor etc etc. All fields are mandatory but can be an empty string (ie. not null)
    Author:
    smorgrav
    • Method Detail

      • addressLines

        public java.lang.String addressLines()
      • postalCodeOrZip

        public java.lang.String postalCodeOrZip()
      • city

        public java.lang.String city()
      • country

        public java.lang.String country()
      • stateRegionProvince

        public java.lang.String stateRegionProvince()
      • withAddressLines

        public TenantInfoAddress withAddressLines​(java.lang.String newAddressLines)
      • withPostalCodeOrZip

        public TenantInfoAddress withPostalCodeOrZip​(java.lang.String newPostalCodeOrZip)
      • withCountry

        public TenantInfoAddress withCountry​(java.lang.String newCountry)
      • withStateRegionProvince

        public TenantInfoAddress withStateRegionProvince​(java.lang.String newStateRegionProvince)
      • isEmpty

        public boolean isEmpty()
      • equals

        public boolean equals​(java.lang.Object o)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object