集合

重写equals()和hashcode()可以放入哈希表结构集合对象中

实现compareble,可以比较和排序可以放入treeset中

原文地址:https://www.cnblogs.com/vincentmax/p/14701312.html