equals() 方法:
Symmetry:两个引用, a 和 b , a.equals(b) if and only if b.equals(a)
Reflexivity:所有非空引用, a.equals(a)
Transitivity:If a.equals(b) and b.equals(c) , then a.equals(c)
Consistency with hashCode() :两个相等的对象必须有相同的 hashCode() 值
Symmetry:两个引用, a 和 b , a.equals(b) if and only if b.equals(a)
Reflexivity:所有非空引用, a.equals(a)
Transitivity:If a.equals(b) and b.equals(c) , then a.equals(c)
Consistency with hashCode() :两个相等的对象必须有相同的 hashCode() 值