For mutable objects, the answer is not always so clear.
对于可修改对象来说,答案并不总是如此清楚。
Some design problems are easier to solve with mutable objects.
有一些设计问题还是使用易变对象比较容易解决。
Systems designed with physical level technologies usually rely on mutable objects residing at various levels of an architecture.
采用物理层技术设计的系统通常依赖于驻留在架构不同层次上的可变对象。
Typically, this means copying any mutable objects that comprise the internal "deep structure" of the object being cloned and replacing the references to these objects with references to the copies.
这通常意味着要复制包含正在被复制对象的内部“深层结构”的所有可变对象,并使用对副本的引用替换对这些对象的引用。
Typically, this means copying any mutable objects that comprise the internal "deep structure" of the object being cloned and replacing the references to these objects with references to the copies.
这通常意味着要复制包含正在被复制对象的内部“深层结构”的所有可变对象,并使用对副本的引用替换对这些对象的引用。
应用推荐