package com.bean; import java.io.Serializable; public class Country implements Serializable{ /** * */ private static final long serialVersionUID = -7532749890438218735L; private String id; private String country; public Country(String countryCode, String country) { this.id = countryCode; this.country = country; } public String getId() { return id; } public void setId(String id) { this.id = id; } public String getCountry() { return country; } public void setCountry(String country) { this.country = country; } @Override public int hashCode() { final int prime = 31; int result = 1; result = prime * result + ((country == null) ? 0 : country.hashCode()); result = prime * result + ((id == null) ? 0 : id.hashCode()); return result; } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (getClass() != obj.getClass()) return false; Country other = (Country) obj; if (country == null) { if (other.country != null) return false; } else if (!country.equals(other.country)) return false; if (id == null) { if (other.id != null) return false; } else if (!id.equals(other.id)) return false; return true; } @Override public String toString() { return country; } }