Package com.teamdev.jxbrowser.user
Class Address.Builder
java.lang.Object
com.teamdev.jxbrowser.user.Address.Builder
- Enclosing interface:
- Address
A builder of
Address.- Since:
- 8.0.0
-
Method Summary
Modifier and TypeMethodDescriptionbuild()Returns a newAddressinstance built from the current state of this builder.Sets the city of the address.dependentLocality(String dependentLocality) Sets the dependent locality of the address.Sets the state of the address.streetAddress(String address) Sets the full street address.Sets the zip code of the address.
-
Method Details
-
streetAddress
Sets the full street address.- Parameters:
address- the full street address- Returns:
- this builder
-
city
Sets the city of the address.- Parameters:
city- the name of the city- Returns:
- this builder
-
state
Sets the state of the address.- Parameters:
state- the name of the state- Returns:
- this builder
-
zipCode
Sets the zip code of the address.- Parameters:
zip- the zip code- Returns:
- this builder
-
dependentLocality
Sets the dependent locality of the address.- Parameters:
dependentLocality- the subdivision of a city, e.g. an inner-city district or a suburb- Returns:
- this builder
-
build
Returns a newAddressinstance built from the current state of this builder.- Returns:
- a new
Addressinstance
-