/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package com.wordpress.salaboy; import java.io.Serializable; /** * * @author salaboy */ public class MyObject implements Serializable{ private String name; public MyObject(String name) { this.name = name; } public String getName() { return name; } public void setName(String name) { this.name = name; } @Override public boolean equals(Object obj) { if (obj == null) { return false; } if (getClass() != obj.getClass()) { return false; } final MyObject other = (MyObject) obj; if ((this.name == null) ? (other.name != null) : !this.name.equals(other.name)) { return false; } return true; } @Override public int hashCode() { int hash = 3; hash = 71 * hash + (this.name != null ? this.name.hashCode() : 0); return hash; } }