Class TenantInfoAddress
- java.lang.Object
-
- com.yahoo.vespa.hosted.controller.tenant.TenantInfoAddress
-
public class TenantInfoAddress extends 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
-
-
Field Summary
Fields Modifier and Type Field Description static TenantInfoAddressEMPTY
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringaddressLines()Stringcity()Stringcountry()booleanequals(Object o)inthashCode()booleanisEmpty()StringpostalCodeOrZip()StringstateRegionProvince()TenantInfoAddresswithAddressLines(String newAddressLines)TenantInfoAddresswithCity(String newCity)TenantInfoAddresswithCountry(String newCountry)TenantInfoAddresswithPostalCodeOrZip(String newPostalCodeOrZip)TenantInfoAddresswithStateRegionProvince(String newStateRegionProvince)
-
-
-
Field Detail
-
EMPTY
public static final TenantInfoAddress EMPTY
-
-
Method Detail
-
addressLines
public String addressLines()
-
postalCodeOrZip
public String postalCodeOrZip()
-
city
public String city()
-
country
public String country()
-
stateRegionProvince
public String stateRegionProvince()
-
withAddressLines
public TenantInfoAddress withAddressLines(String newAddressLines)
-
withPostalCodeOrZip
public TenantInfoAddress withPostalCodeOrZip(String newPostalCodeOrZip)
-
withCity
public TenantInfoAddress withCity(String newCity)
-
withCountry
public TenantInfoAddress withCountry(String newCountry)
-
withStateRegionProvince
public TenantInfoAddress withStateRegionProvince(String newStateRegionProvince)
-
isEmpty
public boolean isEmpty()
-
-