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的引用。
Inner classes can refer to mutable instance fields if the inner-class expression occurs in an instance context, but this is not the same thing.
如果内部类表达式出现在某个实例上下文中的话,内部类可以引用可变的实例域instance field,但这不是同一回事。
If the value being assigned is a mutable value class, the method returns a shallow copy of the class, because value classes have copy semantics.
如果分配的值是可变值类,则该方法返回该类的浅表副本,因为值类拥有复制语义。
If the value being assigned is a mutable value class, the method returns a shallow copy of the class, because value classes have copy semantics.
如果分配的值是可变值类,则该方法返回该类的浅表副本,因为值类拥有复制语义。
应用推荐