immutable中文,immutable的意思,immutable翻译及用法

2025-10-31 20:10 浏览次数 9

immutable

英[ɪˈmju:təbl]美[ɪˈmjutəbəl]

adj. 不变的;不可变的;不能变的

immutable 英语释义

英语释义

  • not subject or susceptible to change or variation in form or quality or nature;

    "the view of that time was that all species were immutable, created by God"

immutable 片语

片语

Eternally Immutable亘古不变的

Immutable Value常量值

permanent烫发(等于permanent wave)

immutable bit变字节

constant(Constant)人名;(德)康斯坦特

steady稳定的;不变的;沉着的

immutable deployment不可变部署

Immutable infrastructure不可变基础设施

Immutable Data不可变数据

immutable types不可变类型

Immutable Collection不可变集合

immutable 例句

英汉例句

  • so as long as you stick to the simplest rules of concurrent programming - stateless services and immutable objects, it will be a breeze to wire your services to any producer or consumer.

    所以只要你坚持并发编程的最简单规则——无状态服务和不变对象,将你的服务绑定到任何生产者或消费者上都会轻而易举。

  • thus, you should never have a no-argument constructor for an immutable class.

    因此,您永远都不该为一个不可变类提供一个无参数的构造函数。

  • if you have an immutable object, you must set whatever state it will contain in the constructor.

    如果您有一个不可变对象,则必须要在构造函数中设置该对象将包含的任何状态。

  • the auto-loader is so handy that rather than coding functions, you can create methods in a appropriately named utility class and put your constants in immutable classes.

    自动装载器非常方便,所以可以不编写函数,而是在适当命名的实用程序类中创建方法并把常量放在不可变的类中。

  • implementation of the immutable lists is then straightforward, as shown in listing 6.

    那时,执行一个不可变的链表是直截了当的,如清单6 所示。

  • making the message classes immutable and cloning mutable references such as arrays at construction time would have prevented this problem.

    使得消息类不可变并在构造时克隆像数组这样的可变引用,就可以防止该问题。

  • rather, a new immutable version of the data structure is returned.

    而是返回该数据结构的一个新的不可变版本。

  • one advantage of immutable classes is that they are thread-safe.

    (不可变类的一个优点就是它们是线程安全的)。

  • stringbuilder; one is immutable and changes to it cause the creation of a new copy, the other allows for in-place modification.

    一个是不可变的,当需要修改的时候它会创建一个新的副本,而另一个则允许直接在其上进行修改。

  • if you want to change an immutable object, you don't — you create a new object with the changed value and point your reference to it.

    如果您想要改变一个不可变对象的话,您不会改变它,而是使用修改后的值来创建一个新的对象,并把您的引用指向它。

  • note that the function can only access the list as an immutable sequence—that is, trying to modify the contents of the list results in an error.

    注意,函数只能作为不可变的序列访问这个列表 — 也就是说,尝试修改列表的内容会导致错误。

  • immutable data is a key aspect of many languages that focus on concurrency because it has such nice properties.

    不可变数据是许多侧重于并发性的语言的关键方面,因为它有如此好的属性。

  • this pattern requires that the value being published be effectively immutable -- that its state not change after publication.

    这个模式要求被发布的值是有效不可变的 ——即值的状态在发布后不会更改。

  • immutable policy versions and the ability to check policy data completeness supports optimization for distributed and responsive environments.

    不变策略版本及检查策略数据完整性的能力支持分布及响应环境的优化。

  • when considering a tree of nodes where each node is an immutable data structure, we must consider how to modify a node or nodes inside the tree without modifying the entire tree.

    在考虑每个节点都是一个不可变数据结构的节点树时,我们必须考虑如何修改树内的一个节点或多个节点,而不必更改整个树。

  • immutable objects are also automatically thread-safe and have no synchronization issues.

    不可变对象也是自动线程安全的,不存在同步问题。

  • one of these is the immutable attribute.

    其中之一就是不可变属性。

  • furthermore, if at some future date we needed a third type of list (for example, an immutable list), we would have to go into every one of these methods and change the code.

    此外,如果在将来的某一天,我们需要第三种类型的链表(例如一个不可变的链表),我们将不得不重新编写每一个方法的代码。

  • accessors for immutable properties will always have value semantics and do not need the defensive copying on either side of the call, making them more efficient.

    不可变属性的存取器将总是具有值引用,因而调用的任何一方都不需要防御性复制,这使得它们效率更高。

immutable 同义词

相似词

constant(Constant)人名;(德)康斯坦特

abiding持久的;始终不渝的

changeless不变的;稳定的;单调的

immutable 反义词

相反词

mutable可变的,易变的;反复无常的,用情不专的

mutable可变的,易变的;反复无常的,用情不专的

changeable无常的;可改变的;易变的;不定的

相关热词