Google Guava之Objects

Guava Objects是个非常好用的类,帮助我们写出hashCode(), equals()和toString()。

看下面的小例子。