mutable objects的意思|示意

美 / / 英 / /

可变的对象


mutable objects的网络常见释义

可变对象 为了避免这类型问题的发生,把一个可变对象(mutable objects)保持不变(invariant)是最好不过的办法。如果是集合中不可变对象的话会发生什么?

可变物件 如果你的class 有任何栏位指向 可变物件 ( mutable objects ),你必须确保 其客户不能获得这些物件的references.

mutable objects相关短语

1、 Mutable and Immutable Objects 可变类和不可变类

2、 Objects are mutable 对象是可变的

mutable objects相关例句

Lists, specifically, are handy mutable objects that can conveniently even hold multiple values.

明确的讲,列表是一些便利的可变对象,他们甚至可以方便地保留多个值。

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也可以持有不同类型的数据(或不同类型的对象),这就是我所说的异构的可变序列。

Pass-by-copy semantics for mutable serializable objects when running in a single address space.

在单一地址空间中运行时,易变的可序列化对象的Pass - by - copy语义。

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.

这通常意味着要复制包含正在被复制对象的内部“深层结构”的所有可变对象,并使用对副本的引用替换对这些对象的引用。

XMLGregorianCalendar objects are mutable, and therefore you can simply set any of the date or time fields directly on the object.

XMLGregorianCalendar对象是可以修改的,因此能够直接设置对象的日期或时间字段。