资讯
I prefer that all of my Java classes provide for immutable objects unless there is a compelling need for them to be mutable. I’m not the only one who feels this way.
In Mutable and Immutable Objects, David O’Meara specifies that there are two approaches for ensuring methods are not overridden in a class designed to be immutable.
一些您可能无法访问的结果已被隐去。
显示无法访问的结果