For mutable objects, the answer is not always so clear.
对于可修改对象来说,答案并不总是如此清楚。
Some design problems are easier to solve with mutable objects.
有一些设计问题还是使用易变对象比较容易解决。
Lists, specifically, are handy mutable objects that can conveniently even hold multiple values.
明确的讲,列表是一些便利的可变对象,他们甚至可以方便地保留多个值。
Systems designed with physical level technologies usually rely on mutable objects residing at various levels of an architecture.
采用物理层技术设计的系统通常依赖于驻留在架构不同层次上的可变对象。
When passing references to mutable objects between methods, you need to clearly document under what cases the object's ownership is being transferred.
当在方法之间传递对可变对象的引用时,您需要清楚地文档说明哪些情况下对象的所有权被转移。
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.
这通常意味着要复制包含正在被复制对象的内部“深层结构”的所有可变对象,并使用对副本的引用替换对这些对象的引用。
And just like a tuple, a list can hold different types of data (or different types of objects). This is what I mean by a heterogeneous mutable sequence.
就像tuple一样,list也可以持有不同类型的数据(或不同类型的对象),这就是我所说的异构的可变序列。
The list is a heterogeneous mutable container, which means it can hold different types of objects and can be modified after it has been created.
list是异构可变容器,这意味着它可以存放不同类型的对象且创建后可以修改。
Pass-by-copy semantics for mutable serializable objects when running in a single address space.
在单一地址空间中运行时,易变的可序列化对象的Pass - by - copy语义。
XMLGregorianCalendar objects are mutable, and therefore you can simply set any of the date or time fields directly on the object.
XMLGregorianCalendar对象是可以修改的,因此能够直接设置对象的日期或时间字段。
There are some other issues such as small mutable object creation, such as Rectangle, Point etc, these objects usually cannot be re-used due to synchronization consideration.
一些其他的问题来源于小的可变对象的创建,如Rectangle,Point,这些对象基于同步的考虑通常不可重用。
There are some other issues such as small mutable object creation, such as Rectangle, Point etc, these objects usually cannot be re-used due to synchronization consideration.
一些其他的问题来源于小的可变对象的创建,如Rectangle,Point,这些对象基于同步的考虑通常不可重用。
应用推荐