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

      双语例句

      • God has made certain immutable decisions from all eternity.
        神在永恒里作了不可改变的决定。
      • Because changes only occur upon construction, immutable classes make it trivial to write unit tests.
        因为变化只会发生构造函数中,因此不可变类会将编写单元测试变成了一件微不足道的事情。
      • In this article, I introduced the Python string, which is an immutable sequence of characters.
        在本文中,我介绍了Python字符串,它是一种不变的字符序列。
      • Markets, unlike nature, are not governed by immutable laws but by compensation schemes and banking regulations.
        和大自然不同,控制市场的不是恒久不变的法则,而是薪酬方案和银行监管规定。
      • Joda classes that represent immutable instants in time are subclasses of this one.
        表示时间上的不可变瞬间的Joda类都属于这个类的子类。
      • If you have an immutable object, you must set whatever state it will contain in the constructor.
        如果您有一个不可变对象,则必须要在构造函数中设置该对象将包含的任何状态。
      • Immutable anonymous types in C# and VB work the same way.
        C和VB中的不可变匿名类型完全相同。
      • But once you know to avoid a few pitfalls, building immutable classes in Java gets easier.
        不过一旦您了解了要避免的一些陷阱之后,在Java中构建不可变类这件事情就会变得非常容易。
      • One advantage of immutable classes is that they are thread-safe.
        (不可变类的一个优点就是它们是线程安全的)。
      • Using this style of code is a strong visual indicator that it's an immutable class.
        这种代码风格的使用从视觉上给出了一种强烈的指示:该类是一个不可变类。