八八字典>英语词典>immutable翻译和用法

immutable

英 [ɪˈmjuːtəbl]

美 [ɪˈmjuːtəbl]

adj.  不可改变的; 永恒不变的

复数:immutables 

BNC.20103 / COCA.18955

牛津词典

    adj.

    • 不可改变的;永恒不变的
      that cannot be changed; that will never change

      柯林斯词典

      • ADJ 永远不变的;永恒的
        Something that isimmutablewill never change or cannot be changed.
        1. ...the eternal and immutable principles of right and wrong.
          永恒不变的对错法则

      英英释义

      adj

      • not subject or susceptible to change or variation in form or quality or nature
        1. the view of that time was that all species were immutable, created by God
        Synonym:changeless

      双语例句

      • The Joda classes I discuss in this article are immutable, so instances of them cannot be modified.
        我在本文讨论的Joda类具有不可变性,因此它们的实例无法被修改。
      • Lets you store "lazily immutable" data, which are involved in declarative application programming; peak.
        peak.config让您可以存储“很少改变的(lazilyimmutable)”数据,这些数据与声明性应用程序(declarativeapplication)编程有关;
      • Another useful method is the freeze method by which a string can be made immutable.
        另一个有用的方法是freeze,该方法可以使字符串变得不可修改。
      • Using this style of code is a strong visual indicator that it's an immutable class.
        这种代码风格的使用从视觉上给出了一种强烈的指示:该类是一个不可变类。
      • Immutable objects are also automatically thread-safe and have no synchronization issues.
        不可变对象也是自动线程安全的,不存在同步问题。
      • VB allows both mutable and immutable anonymous types, with subtly different rules for each.
        而VB却同时支持可变和不可变的匿名类型,对于这两种匿名类型,实现和使用的规则也略有不同。
      • Markets, unlike nature, are not governed by immutable laws but by compensation schemes and banking regulations.
        和大自然不同,控制市场的不是恒久不变的法则,而是薪酬方案和银行监管规定。
      • One advantage of immutable classes is that they are thread-safe.
        (不可变类的一个优点就是它们是线程安全的)。
      • But people are thinking, thinking all the time of such change, a sentiment is not immutable.
        但人又是有思维的,这种思维随时都在变,没有一种情感是永恒不变的。
      • Thus, you should never have a no-argument constructor for an immutable class.
        因此,您永远都不该为一个不可变类提供一个无参数的构造函数。