Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 package com.paypal.api.payments;
 
 
 public class Currency  {

3 letter currency code
 
	private String currency;

amount upto 2 decimals represented as string
	private String value;

Default Constructor
	public Currency() {
	}

Parameterized Constructor
	public Currency(String currencyString value) {
		this. = currency;
		this. = value;
	}


Setter for currency
	public Currency setCurrency(String currency) {
		this. = currency;
		return this;
	}

Getter for currency
	public String getCurrency() {
		return this.;
	}


Setter for value
	public Currency setValue(String value) {
		this. = value;
		return this;
	}

Getter for value
	public String getValue() {
		return this.;
	}

Returns a JSON string corresponding to object state

Returns:
JSON representation
	public String toJSON() {
		return JSONFormatter.toJSON(this);
	}
	public String toString() {
		return toJSON();
	}
New to GrepCode? Check out our FAQ X