Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
  package com.paypal.api.payments;
  
  
  public class Address  extends PayPalModel {

Line 1 of the Address (eg. number, street, etc).
  
 	private String line1;

Optional line 2 of the Address (eg. suite, apt #, etc.).
 
 	private String line2;

City name.
 
 	private String city;

2 letter country code.
 
 	private String countryCode;

Zip code or equivalent is usually required for countries that have them. For list of countries that do not have postal codes please refer to http://en.wikipedia.org/wiki/Postal_code.
 
 	private String postalCode;

2 letter code for US states, and the equivalent for other countries.
 
 	private String state;

Phone number in E.123 format.
 
 	private String phone;

Default Constructor
 
 	public Address() {
 	}

Parameterized Constructor
 
 	public Address(String line1String cityString countryCode) {
 		this. = line1;
 		this. = city;
 		this. = countryCode;
 	}

Setter for line1
 
 	public Address setLine1(String line1) {
 		this. = line1;
 		return this;
 	}

Getter for line1
 
 	public String getLine1() {
 		return this.;
 	}

Setter for line2
 
 	public Address setLine2(String line2) {
 		this. = line2;
 		return this;
 	}

Getter for line2
 
 	public String getLine2() {
 		return this.;
 	}

Setter for city
 
 	public Address setCity(String city) {
 		this. = city;
 		return this;
 	}

Getter for city
 
	public String getCity() {
		return this.;
	}

Setter for countryCode
	public Address setCountryCode(String countryCode) {
		this. = countryCode;
		return this;
	}

Getter for countryCode
	public String getCountryCode() {
		return this.;
	}

Setter for postalCode
	public Address setPostalCode(String postalCode) {
		this. = postalCode;
		return this;
	}

Getter for postalCode
	public String getPostalCode() {
		return this.;
	}

Setter for state
	public Address setState(String state) {
		this. = state;
		return this;
	}

Getter for state
	public String getState() {
		return this.;
	}

Setter for phone
	public Address setPhone(String phone) {
		this. = phone;
		return this;
	}

Getter for phone
	public String getPhone() {
		return this.;
	}
New to GrepCode? Check out our FAQ X