Class Address.Builder

java.lang.Object
com.teamdev.jxbrowser.user.Address.Builder
Enclosing interface:
Address

public static final class Address.Builder extends Object
A builder of Address.
Since:
8.0.0
  • Method Details

    • streetAddress

      public Address.Builder streetAddress(String address)
      Sets the full street address.
      Parameters:
      address - the full street address
      Returns:
      this builder
    • city

      public Address.Builder city(String city)
      Sets the city of the address.
      Parameters:
      city - the name of the city
      Returns:
      this builder
    • state

      public Address.Builder state(String state)
      Sets the state of the address.
      Parameters:
      state - the name of the state
      Returns:
      this builder
    • zipCode

      public Address.Builder zipCode(String zip)
      Sets the zip code of the address.
      Parameters:
      zip - the zip code
      Returns:
      this builder
    • dependentLocality

      public Address.Builder dependentLocality(String 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

      public Address build()
      Returns a new Address instance built from the current state of this builder.
      Returns:
      a new Address instance