package com.zipcoder.payment; public class Paypal implements Payment{ Long id; String payerName; String email; public Paypal(Long id, String payerName, String email){ this.id= id; this.payerName = payerName; this. email = email; } public void setId(Long id) { this.id = id; } public void setPayerName(String payerName) { this.payerName = payerName; } public String getEmail() { return email; } public void setEmail(String email) { this.email = email; } public String getShortDescription() { return "Paypal "+ payerName+" "+email; } public Long getId() { return id; } public String getPayerName() { return payerName; } public int compareTo(Payment o) { return this.getShortDescription().compareTo(o.getShortDescription()); } }