• Thus, you should never have a no-argument constructor for an immutable class.

    因此永远都不该不可变提供一个无参数构造函数

    youdao

  • An immutable class that meets the previous requirements appears in Listing 1.

    清单1列出了一个满足上述要求的不可变

    youdao

  • Using this style of code is a strong visual indicator that it's an immutable class.

    这种代码风格使用从视觉上给出了强烈指示:该类一个不可

    youdao

  • The following example shows two ways to implement an immutable class that has auto-implemented properties.

    下面示例演示两种方法实现具有自动实现属性不可

    youdao

  • If you are creating a mutable class m, you should be prepared to write a lot more documentation about the treatment of references to m than if m were immutable.

    如果创建一个可变m,那么您应该准备编写m不可变情况下多得多的文档说明,以说明怎样处理m的引用

    youdao

  • The instances of this class are immutable.

    该类的实例不可变

    youdao

  • Like its global cousin, a class constant is immutable once defined.

    全局属性一样常量一旦定义不可更改

    youdao

  • If the String class is immutable, you should never see any output from this program.

    如果string不变的,则从此程序应当看不到任何输出

    youdao

  • Because the String class is immutable, and highly specified and controlled, it was practical to bring it into the fold of switch - but it was prudent to stop there.

    因为string不变的并且是高度具体化受控的,所以放入switch实用最好不要止步于此。

    youdao

  • Simply put, Python provides an elegant solution by including an immutable collection-based class designed to deal exclusively with sequences of characters.

    简单来说,Python通过包括不变基于集合提供一个优秀解决方案,这个基于集合的类是专门为有效地处理字符序列而设计的。

    youdao

  • Building the public-immutable-field version of the Address class in Groovy yields a nice clean implementation, shown in Listing 6.

    可以使用Groovy来构建公共不可变域版本address带来的是一种非常清晰实现如清单6所

    youdao

  • To implement mutator methods, the new LinkedList class serves as a container for an internal, immutable list, as shown in Listing 5.

    为了执行可变方法新的LinkedList作为一个内部不可变的链容器如清单5

    youdao

  • The in-memory representation of a schema is defined as the schema class, which is immutable and therefore thread-safe.

    模式内存中表示定义schema,该类恒定的因此也是线程安全

    youdao

  • The Rope class is designed to be immutable, meaning that mutator functions never modify the original Rope instance, but, rather, return a modified copy.

    Rope设计不可修改,这意味着mutator函数永远不会修改原来的Rope实例而是返回一个修改后的副本。

    youdao

  • There are some class immutable is impossible, then try to limit the mutability of them.

    而总有些显然不可能不变这时尽可能限制它的可变性

    youdao

  • If a class contains only primitive fields or references to immutable objects, then it is usually the case that no fields in the object returned by super. clone need to be modified.

    如果一个包含基本字段不变对象引用那么通常需要修改super .clone返回对象中的字段。

    youdao

  • You can fix the case above, where the called method modifies an object, by making the class immutable.

    可以修正以上例子被调用方法修改一个对象时这个成为不可变的。

    youdao

  • If the value being assigned is an immutable value class, the method returns the object itself, instead of a copy of the class.

    如果指派不可变动实值类别,则方法传回物件本身而不是类别复本

    youdao

  • For the middle-class black, conditioned by these values from birth, the sense of meaning they provide is as immutable as the color of his skin.

    对于中产阶级 人,出生起就受到这些价值观念约束,人们提供意义解释就我的肤色黑色的一样永恒不变。

    youdao

  • For the middle-class black, conditioned by these values from birth, the sense of meaning they provide is as immutable as the color of his skin.

    对于中产阶级 人,出生起就受到这些价值观念约束,人们提供意义解释就我的肤色黑色的一样永恒不变。

    youdao

$firstVoiceSent
- 来自原声例句
小调查
请问您想要如何调整此模块?

感谢您的反馈,我们会尽快进行适当修改!
进来说说原因吧 确定
小调查
请问您想要如何调整此模块?

感谢您的反馈,我们会尽快进行适当修改!
进来说说原因吧 确定