• They provide a mutable wrapper for otherwise immutable object references.

    它们那些用其他方式不可改变对象引用提供了一个改变包装器

    youdao

  • Clearly, this approach is a pain but the solution is easy: Never use a mutable object type as a key in a HashMap.

    很显然这种方法很糟糕但是解决方法很简单永远不要可变对象类型用作hashmap中的

    youdao

  • This makes a difference when the default is a mutable object such as a list, dictionary, or instances of most classes.

    默认一个可变对象诸如表、字典大部分类实例时会产生一些差异

    youdao

  • This makes a difference when the default is a mutable object such as a list, dictionary, or instances of most classes.

    使得默认可变对象时会有所不同比如列表字典或者大多数实例

    youdao

  • This is usually not a problem in practiceit is not common practice to use a mutable object like a List as a key in a HashMap.

    实践过程通常不是问题——我们并不经常使用List这样的可修改对象做为hashmap中的关键字。

    youdao

  • Cases where an aliased mutable object gets unexpectedly modified can crop up in a number of subtle and surprising ways, and debugging them can be extremely difficult.

    别名可变对象意外修改的情况许多微妙令人惊奇方式突然出现,并且调试起来相当困难

    youdao

  • Tuples can be used as keys if they contain only strings, numbers, or tuples; if a tuple contains any mutable object either directly or indirectly, it cannot be used as a key.

    如果组中包含字符串数字,它可以做为关键字,如果它直接间接包含可变对象不能当做关键字。

    youdao

  • There are some other issues such as small mutable object creation, such as Rectangle, Point etc, these objects usually cannot be re-used due to synchronization consideration.

    一些其他问题来源于可变对象创建Rectangle,Point这些对象基于同步考虑通常不可重用

    youdao

  • Unearthing tidbits often involves some complexity, however, like discovering that you can have your way with HashMap, just as long as you never use a mutable object type as its key.

    但是发掘这些有用之物可能有点复杂比如只要可变对象类型作为,您可以自己方式使用 HashMap

    youdao

  • Typically, this means copying any mutable objects that comprise the internal "deep structure" of the object being cloned and replacing the references to these objects with references to the copies.

    通常意味着复制包含正在被复制对象内部深层结构所有可变对象使用副本引用替换这些对象的引用。

    youdao

  • Methods you call shouldn't depend on the mutable state of any object and should return fully reproducible and predictable results.

    所调用方法依赖任何对象易变状态返回再生产可预测结果

    youdao

  • For example, a user is a mutable entity, but you might use an immutable value object to represent the user's address, just changing the address that you point to for the user if he or she moves.

    例如,虽然用户可变实体但是可以使用不可对象表示用户地址如果用户移动了位置那么只需用户更改您所指向地址。

    youdao

  • When used as constructor parameters, the mutable or immutable variables specified will be initialized when an object is instantiated.

    作为构造函数参数时,这些可变或者不可变变量一个对象被实例化的时候初始化

    youdao

  • XMLGregorianCalendar objects are mutable, and therefore you can simply set any of the date or time fields directly on the object.

    XMLGregorianCalendar对象可以修改因此能够直接设置对象日期时间字段

    youdao

  • XMLGregorianCalendar objects are mutable, and therefore you can simply set any of the date or time fields directly on the object.

    XMLGregorianCalendar对象可以修改因此能够直接设置对象日期时间字段

    youdao

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

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

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