Package com.teamdev.jxbrowser.user
Interface Address
public interface Address
The user's address containing information about a street, city, state, etc.
- Since:
- 7.23
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptiondefault Stringcity()The name of the city.default StringThe ISO 3166 2-letter country code.default StringA subdivision of a city, e.g., an inner-city district or a suburb.static Address.BuildernewBuilder(String countryCode) Creates a newAddressbuilder with the given ISO 3166 country code.default Stringstate()The name of the state.default StringThe full street address.default Stringzip()The ZIP code.
-
Method Details
-
newBuilder
Creates a newAddressbuilder with the given ISO 3166 country code.- Parameters:
countryCode- the 2-letter country code- Returns:
- a new
Address.Builderinstance - Throws:
IllegalArgumentException- if the length ofcountryCodeis not two- Since:
- 8.0.0
-
streetAddress
The full street address. -
city
The name of the city. -
dependentLocality
A subdivision of a city, e.g., an inner-city district or a suburb. -
state
The name of the state. -
zip
The ZIP code. -
countryCode
The ISO 3166 2-letter country code.
-