hashCode是用于查找使用的, 作为对象的唯一标识,而equals是用于比较两个对象的是否相等的。 转载于:https://www.cnblogs.com/feicheninfo/p/9661766.html