摘要:
java语言中,比较两个Object是否相等,需重写equal()方法和hasCode()方法public class UserHistory implements Serializable{ private static final long serialVersionUID = 1L; public UserHistory(String content) { super(); this.content = content; this.id = id; } private String content; priv... 阅读全文