Google Guava之Objects

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

看下面的小例子。

 

发表评论

电子邮件地址不会被公开。 必填项已用*标注