Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 package com.paypal.api.payments;
 import java.util.List;
public class PaymentHistory extends Resource {

	private List<Paymentpayments;

	private Integer count;

	private String nextId;

	public PaymentHistory() {

Getter for payments
	public List<PaymentgetPayments() {
		return ;

Setter for payments;
	public void setPayments(List<Paymentpayments) {
		this. = payments;
Getter for count
	public Integer getCount() {
		return ;

Setter for count;
	public void setCount(Integer count) {
		this. = count;
Getter for nextId
	public String getNextId() {
		return ;

Setter for nextId;
	public void setNextId(String nextId) {
		this. = nextId;

Returns a JSON string corresponding to object state

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