![240](https://cdn2.jianshu.io/assets/default_avatar/5-33d2da32c552b8be9a0548c7a4576607.jpg?imageMogr2/auto-orient/strip|imageView2/1/w/240/h/240)
IP属地:四川
自反性:对于任何非null的引用对象x,x.equal(x)必须返回true 对称性:对于任何非null的引用对象x、y,若x.equal(y)...
Item 2: Consider a builder when faced many constructor parameters. 当类的构造...
Item 1:Consider static factory methods instead of constructors Advantage...
1.创建和销毁对象 第1条:考虑用静态工厂方法代替构造器 第2条: 构造器参数过多时考虑用构建器 第3条:用私有构造器或者枚举类型强化singl...