That article demonstrated the tuple, which is an immutable sequence. 这篇文章演示了tuple,这是一个不可变的序列。
Because BigDecimal objects are immutable, each of these methods produces a new BigDecimal object. 由于BigDecimal对象是不可变的,这些方法中的每一个都会产生新的BigDecimal对象。
The Joda classes I discuss in this article are immutable, so instances of them cannot be modified. 我在本文讨论的Joda类具有不可变性,因此它们的实例无法被修改。
Another useful method is the freeze method by which a string can be made immutable. 另一个有用的方法是freeze,该方法可以使字符串变得不可修改。
Thus, you should never have a no-argument constructor for an immutable class. 因此,您永远都不该为一个不可变类提供一个无参数的构造函数。
Immutable objects are also automatically thread-safe and have no synchronization issues. 不可变对象也是自动线程安全的,不存在同步问题。
But once you know to avoid a few pitfalls, building immutable classes in Java gets easier. 不过一旦您了解了要避免的一些陷阱之后,在Java中构建不可变类这件事情就会变得非常容易。
If you have an immutable object, you must set whatever state it will contain in the constructor. 如果您有一个不可变对象,则必须要在构造函数中设置该对象将包含的任何状态。
In this article, I introduced the Python string, which is an immutable sequence of characters. 在本文中,我介绍了Python字符串,它是一种不变的字符序列。
Because changes only occur upon construction, immutable classes make it trivial to write unit tests. 因为变化只会发生构造函数中,因此不可变类会将编写单元测试变成了一件微不足道的事情。
Joda classes that represent immutable instants in time are subclasses of this one. 表示时间上的不可变瞬间的Joda类都属于这个类的子类。
Lets you store "lazily immutable" data, which are involved in declarative application programming; peak. peak.config让您可以存储“很少改变的(lazilyimmutable)”数据,这些数据与声明性应用程序(declarativeapplication)编程有关;
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. 这种代码风格的使用从视觉上给出了一种强烈的指示:该类是一个不可变类。
As immutable sequences, both tuple and string objects can't be modified once they're created. 作为不可变的序列,tuple和string对象在创建之后便无法修改。
The logic is immutable, but the circumstances have changed. 这种逻辑不会变,但环境已经发生变化。
Values and attitudes are not immutable, but are likely to change. 价值观和态度不是一成不变的,而是很可能改变。
God has made certain immutable decisions from all eternity. 神在永恒里作了不可改变的决定。
We should design the language so that the default case is an immutable value. 我们设计的语言在默认情况下应该是不变的值。
Immutable anonymous types in C# and VB work the same way. C和VB中的不可变匿名类型完全相同。
There are immutable laws of the universe. 宇宙中有很多不可逆转的规律。
Markets, unlike nature, are not governed by immutable laws but by compensation schemes and banking regulations. 和大自然不同,控制市场的不是恒久不变的法则,而是薪酬方案和银行监管规定。
God is immutable, incapable of change on the levels of God's essence and character. 上帝是永远不变的,上帝的本质和特征是无法改变的。
You have made A immutable, so it can't be legally modified by f. 因为你已经让A不可变了,所以f不能合法修改它。
VB allows both mutable and immutable anonymous types, with subtly different rules for each. 而VB却同时支持可变和不可变的匿名类型,对于这两种匿名类型,实现和使用的规则也略有不同。
No one will be immutable and frozen pet with you, this society, who do not owe! 没有人会一成不变的宠着你,这个社会,谁也不欠谁的!
The deep contradictions between the Deity and humanity have caused immutable pains in the interaction between belief and rationality. 神性与人性的深刻矛盾,在信仰与理性的互动之间造成了恒久不变的痛苦。
But people are thinking, thinking all the time of such change, a sentiment is not immutable. 但人又是有思维的,这种思维随时都在变,没有一种情感是永恒不变的。
To the peaceful night and its starlit magnificence succeeded the immutable day and the sun's ardent rays. 恼人的白昼和炙热的太阳代替了宁静的黑夜和美丽的星光。