Interface Address


public interface Address
The user's address containing information about a street, city, state, etc.
Since:
7.23
  • Method Details

    • newBuilder

      static Address.Builder newBuilder(String countryCode)
      Creates a new Address builder with the given ISO 3166 country code.
      Parameters:
      countryCode - the 2-letter country code
      Returns:
      a new Address.Builder instance
      Throws:
      IllegalArgumentException - if the length of countryCode is not two
      Since:
      8.0.0
    • streetAddress

      default String streetAddress()
      The full street address.
    • city

      default String city()
      The name of the city.
    • dependentLocality

      default String dependentLocality()
      A subdivision of a city, e.g., an inner-city district or a suburb.
    • state

      default String state()
      The name of the state.
    • zip

      default String zip()
      The ZIP code.
    • countryCode

      default String countryCode()
      The ISO 3166 2-letter country code.