go top

延迟实例化

网络释义

  lazily-instantiating

... scope 作用域 lazily-instantiating 延迟实例化 type matching 类型匹配 ...

基于16个网页-相关网页

  Lazy Instance

...实例方法(getInstance())方法中使用“双重检查加锁(Double-Checked Locking)”,这样既保持了“延迟实例化(Lazy Instance)”,又保证只在第一次调用时同步。

基于12个网页-相关网页

有道翻译

延迟实例化

Delayed instantiation

以上为机器翻译结果,长、整句建议使用 人工翻译 。

双语例句

  • 这是一个常用的模式:延迟实例化,只有当它确实需要的时候才实例化该对象。

    This is a common pattern: Lazy Instantiation puts off creating the object until it is actually needed.

    youdao

  • 如果没有延迟处理,就会发生这样的情况:仅仅对泛型模板的基本字段定义进行处理,就会引起对这个模板的同一版本的实例化。

    Without the deferred processing, you could run into a situation where just processing the basic field definitions for a generic template would require instantiating a version of that template.

    youdao

  • 工厂方法让一个类的实例化延迟到子类中进行。

    Factory Method lets a class defer instantiation to subclasses.

    youdao

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

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

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