...的一无所知,所以默认只是对各个域 浅拷贝 , 这对于基本类型和不可变类型(如String类型)没有问题,但是对于可变类(mutable class)却会出问题.
基于24个网页-相关网页
mutable class
可变类
以上为机器翻译结果,长、整句建议使用 人工翻译 。
If you are creating a mutable class m, you should be prepared to write a lot more documentation about the treatment of references to m than if m were immutable.
如果您要创建一个可变类m,那么您应该准备编写比m是不可变的情况下多得多的文档说明,以说明怎样处理m的引用。
youdao
应用推荐
模块上移
模块下移
不移动