• Hence, SignalTranslator adopts a singleton design pattern.

    因此SignalTranslator采用了singleton设计模式。

    youdao

  • This is demonstrated using the ExceptionHandler class, which again adopts a singleton design pattern.

    使用exceptionhandler可以展示一点,该类也采用singleton设计模式

    youdao

  • A simple optimization to this code would be to apply the Singleton design pattern to class Empty, because every instance of Empty is identical.

    段代码简单优化empty应用同一个设计类型因为一个Empty的实例同样的。

    youdao

  • You will design the object as a singleton (this design pattern will limit this object to a single instance) and have the appropriate retrieve and store methods to manipulate the cache.

    对象设计个单子实例singleton)(这个设计模式将把这个对象限制一个单个实例中)使用合适的检索存储方法对高速缓存进行操作

    youdao

  • The singleton is a useful design pattern for allowing only one instance of your class, but common mistakes can inadvertently allow more than one instance to be created.

    例模式非常有用设计模式,它允许对外提供实例但是犯的错误在于不止一个实例创建。

    youdao

  • Since it is thread safe by design, you might cache it in a public static final variable, or wrap it in a singleton pattern after creation for later access.

    因为根据设计线程安全的,创建之后可以把它存在一个公共静态最终变量中,或者包装实例模式以供以后访问

    youdao

  • Don't over - "design pattern" applications - Sometimes it's just easier to write a simple algorithm than it is to incorporate a singleton or facade pattern.

    不要过于注重程序的“设计模式”。有时候一个简单算法,要引入某种模式容易。

    youdao

  • The singleton pattern is probably one of the most often used OOP design patterns; it restricts the number of object instances of a class to one.

    模式可能常用OOP设计模式之一了;限制一个对象实例只能1。

    youdao

  • The singleton pattern is probably one of the most often used OOP design patterns; it restricts the number of object instances of a class to one.

    模式可能常用OOP设计模式之一了;限制一个对象实例只能1。

    youdao

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

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

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