Address

Address

Version 1.10 - Updated on 05/04/2017

Contents

Introduction

public interface Address extends Item

Stores address information.

getIndex

int getIndex()

  • Returns: Address index

getApartment

String getApartment()

  • Returns: Apartment information

getStreet

String getStreet()

  • Returns: Street information

getCity

String getCity()

  • Returns: City name

getState

String getState()

  • Returns: State name

getCountry

String getCountry()

  • Returns: Country name

getZipcode

String getZipcode()

  • Returns: Zipcode

getPObox

String getPObox()

  • Returns: PO Box

getPreference

int getPreference()

  • Returns: Preference number

getType

String getType()

Address type

  • Returns:

Builder

class Builder

Class used to build address request to create or update contact.

Builder

public Builder ()

Constructor used to initialize an empty Address builder object.

Builder

public Builder (Address address)

Constructor used to initialize Address builder with pre-populated Address object.

  • Parameters: address

setIndex

public void setIndex(int index)

Sets the index for the address. When combined with type, index provides a unique identifier for the entry.

  • Parameters: index — index to be set for the address

setApartment

public void setApartment(String apartment)

Sets the apartment.

  • Parameters: apartment — Apartment

setStreet

public void setStreet(String street)

Sets the street.

  • Parameters: street — Street

setCity

public void setCity(String city)

Sets the city.

  • Parameters: city — City

setState

public void setState(String state)

Sets the state.

  • Parameters: state — State

setCountry

public void setCountry(String country)

Sets the country.

  • Parameters: country — Country

setZipcode

public void setZipcode(String zipcode)

Sets the Zip Code.

  • Parameters: zipcode — Zipcode

setPObox

public void setPObox(String pobox)

Sets the P.O.Box.

  • Parameters: pobox — P.O.Box

setPreference

public void setPreference(int preference)

Sets the preference for the address. Lower numbers indicate a higher preference.

  • Parameters: preference — Preference value for the address

setType

public void setType(String type)

Sets the address type. Supported types are:

  • home
  • business
  • personal
  • primary
  • other

    • Parameters: type — address type

Copyright © 2015-2017, Verizon and/or its Licensors. All rights reserved.