然而,tuple是不可变的。
可标记的不可变set和map
其中之一就是不可变属性。
创建和返回一个不可变的物理资源表示。
Create and return an immutable physical resource representation.
Ceylon鼓励尽可能使用不可变的属性。
Ceylon encourages the use of immutable attributes whenever possible.
清单1中列出了一个满足上述要求的不可变类。
An immutable class that meets the previous requirements appears in Listing 1.
slices是逻辑片标识的一个不可变列表。
(不可变类的一个优点就是它们是线程安全的)。
One advantage of immutable classes is that they are thread-safe.
如文中所述,tuple类型是不可变的异构容器。
As discussed, the tuple type is an immutable heterogeneous container.
使文件不可变通常是安全或者入侵检测工作的一部分。
Making files immutable is often done as part of a security or intrusion detection effort.
特定工作区或流中的某个组件的不可变副本称为基准。
An immutable copy of a component in a particular workspace or stream is called a baseline.
这篇文章演示了tuple,这是一个不可变的序列。
That article demonstrated the tuple, which is an immutable sequence.
Scala鼓励你在任何可能的时候使用不可变的值。
Scala encourages you to use immutable values whenever possible.
一种常用的列表类型是tuple,它是不可变的。
One common type of list is called a tuple, and as noted, it's immutable.
严格来说,在RUP 中您采用各阶段的顺序是不可变的。
Strictly speaking, the order in which you undertake phases in RUP is immutable.
那时,执行一个不可变的链表是直截了当的,如清单6所示。
Implementation of the immutable lists is then straightforward, as shown in Listing 6.
表示时间上的不可变瞬间的joda类都属于这个类的子类。
Joda classes that represent immutable instants in time are subclasses of this one.
对不可变数据的更改包括构建数据新版本并从新版本开始工作。
Modifying immutable data consists of building a new version of the data and working from the new version.
因此,您永远都不该为一个不可变类提供一个无参数的构造函数。
Thus, you should never have a no-argument constructor for an immutable class.
这些类型是不可变的,就是说整数对象一旦创建,其值便不可更改。
These types are immutable, which means that when an integer object is created, its value cannot be changed.
此外,对于对象引用的数据成员,引用的对象必须是有效不可变的。
Further, for data members that are object references, the referred-to objects must be effectively immutable.
一个计划不需要多么复杂,多么牢不可变。你可能,例如
A plan doesn't need to be complicated, or rigidly inflexible. You might, for instance
一旦创建,U CM基线是不可变的,并且能用于定义更高级的配置。
Once created, UCM baselines are immutable and can be used for defining higher-level configurations.
这种代码风格的使用从视觉上给出了一种强烈的指示:该类是一个不可变类。
Using this style of code is a strong visual indicator that it's an immutable class.
这个模式要求被发布的值是有效不可变的——即值的状态在发布后不会更改。
This pattern requires that the value being published be effectively immutable — that its state not change after publication.
作为不可变的序列,tuple和string对象在创建之后便无法修改。
As immutable sequences, both tuple and string objects can't be modified once they're created.
一个必须处理对象所有权问题的特殊情况是数组,因为数组不可以是不可变的。
One special case where we are forced to deal with the issue of object ownership is with arrays, as arrays cannot be immutable.
但在那之后,我意识到了,如果域是不可变的话,则无需担心它们被暴露出来。
But then I realized that you don't need to worry about exposing fields if they are immutable.
使得消息类不可变并在构造时克隆像数组这样的可变引用,就可以防止该问题。
Making the message classes immutable and cloning mutable references such as arrays at construction time would have prevented this problem.
如果您有一个不可变对象,则必须要在构造函数中设置该对象将包含的任何状态。
If you have an immutable object, you must set whatever state it will contain in the constructor.
应用推荐