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

      双语例句

      • If you have an immutable object, you must set whatever state it will contain in the constructor.
        如果您有一个不可变对象,则必须要在构造函数中设置该对象将包含的任何状态。
      • 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.
        但人又是有思维的,这种思维随时都在变,没有一种情感是永恒不变的。
      • Because changes only occur upon construction, immutable classes make it trivial to write unit tests.
        因为变化只会发生构造函数中,因此不可变类会将编写单元测试变成了一件微不足道的事情。
      • We should design the language so that the default case is an immutable value.
        我们设计的语言在默认情况下应该是不变的值。
      • That article demonstrated the tuple, which is an immutable sequence.
        这篇文章演示了tuple,这是一个不可变的序列。
      • God has made certain immutable decisions from all eternity.
        神在永恒里作了不可改变的决定。
      • Joda classes that represent immutable instants in time are subclasses of this one.
        表示时间上的不可变瞬间的Joda类都属于这个类的子类。
      • As immutable sequences, both tuple and string objects can't be modified once they're created.
        作为不可变的序列,tuple和string对象在创建之后便无法修改。
      • You have made A immutable, so it can't be legally modified by f.
        因为你已经让A不可变了,所以f不能合法修改它。