网站首页  词典首页

请输入您要查询的英文单词:

 

单词 singleton pattern
释义

singleton pattern

  • 网络单例模式;单件模式;设计模式之单件模式
1.
单例模式
例如:单例模式Singleton Pattern)对象使用构造器进行初始化时,可能会导致值为空的严重后果。
cl314413.blog.163.com
2.
单件模式
单件模式(singleton Pattern)可以保证有且有一个对象实例,并提供一个该类的全局访问点。原型模式(Prototype Pattern)用原型 …
www.cnblogs.com
3.
设计模式之单件模式
设计模式之单件模式Singleton Pattern)(0) 编程算法之动态规划之最长公共子序列(java版)(0) 设计模式一:java设计模式 …
blog.csdn.net
4.
单一模式
  · 单一模式Singleton Pattern):根据单一模式实现的类只允许有一个是类,并且提供了一个全局指针来引用该实例。  结构类 …
java.chinaitlab.com
5.
独体模式
1.独体模式Singleton Pattern)<6>:确保一个类别只有一个实体,并给它一个存取的全域点(global point)2.独体的建构式 …
w1a2d3s4q5e6.blogspot.com
6.
单体模式
单体模式(Singleton Pattern)是为了保证一个类只能实例化一次,并且提供一个访问它的全局访问点。一般有两种方法来使用单体 …
blog.csdn.net

例句

释义:
1.
The Singleton pattern applies to situations in which there needs to be a single instance of a class.
单例模式支持那些需要只保存一个单独的实例的类。
blog.sina.com.cn
2.
Most caches are implemented using the Singleton pattern involving a static reference to a top level Cache class as shown in this example.
使用Singleton模式实现的大多数缓存都涉及本例所示的对顶级Cache类的静态引用。
www.ibm.com
3.
As its name suggests, the Singleton Pattern is typically used when you want only one instance of a particular class.
如其名称所暗示的,当您想要特别类的仅仅一个实例时,才使用Singleton模式。
www.ibm.com
4.
The singleton pattern can be used to delay the initialization of an object as long as possible.
单元素模式可以用来尽可能久地延迟对象的初始化。
www.cnblogs.com
5.
However, the project had two closely related scenarios where the singleton pattern proved useful: for logging and exception handling.
不过本项目中有两个紧密相关的场景可以证明独立模式是有用的:可以用于日志记录和异常处理。
www.ibm.com
6.
To facilitate this, the plug-in class implements the singleton pattern: It stores a reference to itself in a private class variable.
为了使这一点更方便,插件类实现单模式(singletonpattern):它在私有类变量中存储一个自身的引用。
www.ibm.com
7.
To create an instance of the Factory Method Pattern, perform the same steps as for the Singleton Pattern.
要创建Factory方法模式的实例,执行同Singleton模式相同的步骤。
www.ibm.com
8.
Create a private attribute for the Singleton Pattern called _instance.
为Singleton模式创建私有属性,称为_instance。
www.ibm.com
9.
Drag and drop the Singleton Pattern instance from the Pattern Explorer into the UML Class Diagram view.
将Singleton模式实例从模式浏览器中拖拽到UML类图视图中。
www.ibm.com
10.
Doing so creates an instance of the Singleton Pattern in the Model Explorer.
执行此操作将会在模型浏览器中生成一个Singleton模式的实例。
www.ibm.com
1.
The Singleton pattern is shown in Figure 5.
Singleton模式如图5所示。
www.ibm.com
2.
The singleton pattern is baked directly into Scala and is used anywhere you would use static methods or variables in the Java language.
单例模式被直接内置在Scala中,可以替代Java语言中的静态方法或变量。
www.ibm.com
3.
If we follow a straight singleton pattern for PoIdGenerator, this can be problematic.
如果我们使用PoIdGenerator的直接单一模式,可能会出现问题。
www.ibm.com
4.
Using the UML-Java transformation, generate the code for the Singleton Pattern (see Listing 1).
利用UML到Java的转换,为Singleton模式生成代码(参见清单1)。
www.ibm.com
5.
This is a standard PHP singleton pattern.
这是一个标准的PHP单元素模式。
www.ibm.com
6.
Using C# 2. 0 Generics to achieve a reusable Singleton pattern
使用C#2.0泛型来完成单例模式的重用
www.cnblogs.com
随便看

 

英汉双解词典包含2704715条英汉词条,基本涵盖了全部常用单词的翻译及用法,是英语学习的有利工具。

 

Copyright © 2004-2022 Newdu.com All Rights Reserved
更新时间:2025/10/2 18:29:31