1、

As its name suggests, the Singleton Pattern is typically used when you want only one instance of a particular class.

如其名称所暗示的,当您想要特别类的仅仅一个实例时,才使用Singleton模式。

互联网摘选

2、

Drag and drop the Singleton Pattern instance from the Pattern Explorer into the UML Class Diagram view.

将Singleton模式实例从模式浏览器中拖拽到UML类图视图中。

互联网摘选

3、

However, the project had two closely related scenarios where the singleton pattern proved useful: for logging and exception handling.

不过本项目中有两个紧密相关的场景可以证明独立模式是有用的:可以用于日志记录和异常处理。

互联网摘选

4、

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类的静态引用。

互联网摘选

5、

If we follow a straight singleton pattern for PoIdGenerator, this can be problematic.

如果我们使用PoIdGenerator的直接单一模式,可能会出现问题。

互联网摘选

6、

To facilitate this, the plug-in class implements the singleton pattern: It stores a reference to itself in a private class variable.

为了使这一点更方便,插件类实现单模式(singleton pattern):它在私有类变量中存储一个自身的引用。

互联网摘选

7、

This setup means that no matter which thread uses this class in the Singleton Pattern, whenever that public method is called, it should output the same value.

这个测试类的意思就是不论那个线程在任何时候,在单例下调用这个类公共方法,都将返回相同的值。

互联网摘选

8、

Using the Singleton pattern we guarantee that no matter how many times the BusinessLayerProxy tries to create a CommandFactory, only one instance will exist.

使用Singleton模式,我们可以保证无论BusinessLayerProxy多少次尝试建立CommandFactory,也只存在一个实例。

互联网摘选

9、

In the case of eg.a singleton pattern using the constructor this can have severe consequences and lead to seemingly random null reference exceptions.

单一模式使用构造函数可能会导致严重后果,会带来类似随机的空参数异常。

互联网摘选

10、

the rap platform provides a session singleton for accessing a unique instance within the session scope.

RAP平台提供了一个会话单例,用于在会话作用域中访问一个唯一的实例。

互联网摘选

11、

in this model, non singleton fuzzier was introduced into regular neural network, so that noise could be removed from train data adaptively.

该算法将非单点模糊化技术引入正则神经网络,在自学习的过程中,能够自动滤除训练数据中的噪声,获取准确的信息。

互联网摘选

12、

to configure the query builder to create singleton predictions , click singleton queries in the top left corner of the tab .

若要配置查询生成器以创建单独预测,请单击该选项卡左上角的“单独查询”。

互联网摘选

14、

They created the teenager , the yuppie, the baby boomer, the singleton and the metrosexual.

他们把消费者划分为:青少年, 婴儿潮, 单身主义者和都市玉男.

互联网摘选

15、

Alliott told Singleton he was passing the sentence prescribed by law.

阿利奥特告诉辛格尔顿他是依法判决。

《柯林斯高阶英汉双解学习词典》

16、

Singleton's counsel said after the trial that he would appeal.

审判结束后,辛格尔顿的律师表示他将会上诉。

《柯林斯高阶英汉双解学习词典》

17、

Bank is a 38-year-old singleton who grew up in Philadelphia.

班克是一名38岁的单身汉,在费城长大。

《柯林斯高阶英汉双解学习词典》

18、

Singleton female easy and capricious, selfish, slack, feebleminded wait.

独生子女轻易任性 、 自私 、 懒散 、 意志薄弱等.

互联网摘选

19、

The irony is that delivering and for twins costs 16 as much as for a singleton.

带有讽刺意味的是,生育和照顾双胞胎的费用是一个孩子的16倍.

网络文摘精选

20、

The Singleton pattern is used in the design of logger classes.

单件模式被用在日志记录类中.

网络文摘精选

  • 今日热词
  • 热门搜索

英语网英语词典(dict.25820.com)为您提供在线翻译英语词典单词大全英译汉汉译英等英语服务!可按单词字数词义分类查询。支持lj:关键词格式查询例句。

用户反馈
请选择反馈类型(可多选):
您的联系方式:
反馈内容:
提交成功 小编会尽快处理
回到顶部
点击反馈