go top

延迟实例化

网络释义

  Lazy instantiaze

懒汉式单例类 延迟实例化(lazy instantiaze) 对于懒汉模式,我们可以这样理解:该单例类非常懒,只有在自身需要的时候才会行动,从来不知道及早做好准备。

基于28个网页-相关网页

  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

  • 定义用于创建对象的接口子类决定实例工厂方法使一个类的实例延迟其子类。

    Define an interface for creating an object, but let subclasses decide which class to instantiate. Factory Method lets a class defer instantiation to subclasses.

    youdao

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

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

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