Address.Builder


public final class Address.Builder


Builder class for Address.

Summary

Public constructors

Public methods

Address
Address.Builder

Sets the city in the address.

Address.Builder

Sets the country in the address.

Address.Builder

Sets the display address.

Address.Builder

Sets the neighborhood in the address.

Address.Builder

Sets the state in the address.

Address.Builder

Sets the street address.

Address.Builder

Sets the zip code in the address.

Public constructors

Builder

public Builder()

Public methods

build

public Address build()

setCity

@CanIgnoreReturnValue
public Address.Builder setCity(@NonNull String city)

Sets the city in the address.

Required.

setCountry

@CanIgnoreReturnValue
public Address.Builder setCountry(@NonNull String country)

Sets the country in the address.

Required.

setDisplayAddress

@CanIgnoreReturnValue
public Address.Builder setDisplayAddress(@NonNull String displayAddress)

Sets the display address.

Required.

setNeighborhood

@CanIgnoreReturnValue
public Address.Builder setNeighborhood(String neighborhood)

Sets the neighborhood in the address.

Optional.

setState

@CanIgnoreReturnValue
public Address.Builder setState(String state)

Sets the state in the address.

Optional.

setStreetAddress

@CanIgnoreReturnValue
public Address.Builder setStreetAddress(String streetAddress)

Sets the street address.

Optional.

setZipCode

@CanIgnoreReturnValue
public Address.Builder setZipCode(String zipCode)

Sets the zip code in the address.

Optional.