Class TenantAddress
java.lang.Object
com.yahoo.vespa.hosted.controller.tenant.TenantAddress
A generic address container that tries to make as few assumptions about addresses as possible.
Most addresses have some of these fields, but with different names (e.g. postal code vs zip code).
When consuming data from this class, do not make any assumptions about which fields have content.
An address might be still valid with surprisingly little information.
All fields are non-null, but might be empty strings.
- Author:
- ogronnesby
-
Method Summary
Modifier and TypeMethodDescriptionaddress()Multi-line fields that has the contents of the street address (or similar)city()The city of the addresscode()The ZIP or postal code part of the addresscountry()The country part of the address.static TenantAddressempty()booleaninthashCode()booleanisEmpty()region()The region part of the address - e.g.toString()withAddress(String address) withCountry(String country) withRegion(String region)
-
Method Details
-
empty
-
address
Multi-line fields that has the contents of the street address (or similar) -
code
The ZIP or postal code part of the address -
city
The city of the address -
region
The region part of the address - e.g. a state, county, or province -
country
The country part of the address. Its name, not a code -
isEmpty
public boolean isEmpty() -
withAddress
-
withCode
-
withCity
-
withRegion
-
withCountry
-
toString
-
equals
-
hashCode
public int hashCode()
-