五五字典>英语词典>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

      双语例句

      • There are immutable laws of the universe.
        宇宙中有很多不可逆转的规律。
      • Because BigDecimal objects are immutable, each of these methods produces a new BigDecimal object.
        由于BigDecimal对象是不可变的,这些方法中的每一个都会产生新的BigDecimal对象。
      • In this article, I introduced the Python string, which is an immutable sequence of characters.
        在本文中,我介绍了Python字符串,它是一种不变的字符序列。
      • The Joda classes I discuss in this article are immutable, so instances of them cannot be modified.
        我在本文讨论的Joda类具有不可变性,因此它们的实例无法被修改。
      • God is immutable, incapable of change on the levels of God's essence and character.
        上帝是永远不变的,上帝的本质和特征是无法改变的。
      • The logic is immutable, but the circumstances have changed.
        这种逻辑不会变,但环境已经发生变化。
      • One advantage of immutable classes is that they are thread-safe.
        (不可变类的一个优点就是它们是线程安全的)。
      • Another useful method is the freeze method by which a string can be made immutable.
        另一个有用的方法是freeze,该方法可以使字符串变得不可修改。
      • You have made A immutable, so it can't be legally modified by f.
        因为你已经让A不可变了,所以f不能合法修改它。
      • Because changes only occur upon construction, immutable classes make it trivial to write unit tests.
        因为变化只会发生构造函数中,因此不可变类会将编写单元测试变成了一件微不足道的事情。