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.- ...the eternal and immutable principles of right and wrong.
永恒不变的对错法则
- ...the eternal and immutable principles of right and wrong.
英英释义
adj
- 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 objects are also automatically thread-safe and have no synchronization issues.
不可变对象也是自动线程安全的,不存在同步问题。 - If you have an immutable object, you must set whatever state it will contain in the constructor.
如果您有一个不可变对象,则必须要在构造函数中设置该对象将包含的任何状态。 - To the peaceful night and its starlit magnificence succeeded the immutable day and the sun's ardent rays.
恼人的白昼和炙热的太阳代替了宁静的黑夜和美丽的星光。 - Immutable anonymous types in C# and VB work the same way.
C和VB中的不可变匿名类型完全相同。 - Lets you store "lazily immutable" data, which are involved in declarative application programming; peak.
peak.config让您可以存储“很少改变的(lazilyimmutable)”数据,这些数据与声明性应用程序(declarativeapplication)编程有关; - Joda classes that represent immutable instants in time are subclasses of this one.
表示时间上的不可变瞬间的Joda类都属于这个类的子类。 - 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.
(不可变类的一个优点就是它们是线程安全的)。 - Because changes only occur upon construction, immutable classes make it trivial to write unit tests.
因为变化只会发生构造函数中,因此不可变类会将编写单元测试变成了一件微不足道的事情。 - Another useful method is the freeze method by which a string can be made immutable.
另一个有用的方法是freeze,该方法可以使字符串变得不可修改。