在这种情况下,一个新的单例对象会被创建。
例如,看一下清单1内所示的这个连接池单例。
For example, take a look at the connection pool singleton in Listing 1.
在同一时间只能引用单例方法一次。
通过使用这种功能,您可以使用流行的单例模式。
Through this functionality, you can use the popular singleton pattern.
单例模式是一个非常复杂的 问题。
Singleton is bit complex, but it plays very important role in game development.
在同一时间只能引用单例方法一次。
一种常见用法是用于存储非线程安全类型的单例。
One common use is for storing a singleton of a type that is not thread-safe.
另一个选择是使用单例模式。
返回应用程序单例对象。
单例模式有点复杂,但它在游戏开发中非常有用。
Singleton is bit complex, but it plays very important role in game development.
使用这个类,不需要复制代码就可以实现任意类单例化。
So with this class we can makeany class singleton, without duplicating the code.
单例:保证一个类仅有一个实例,并提供一个访问它的全局访问点。
Singleton: one instance of a class or one value accessible globally in an application.
单例模式确实能够轻而易举解决无须对每个类的引用都进行存储的问题。
They easily solve the problem of not having to store references to every class.
首先,XML是一个Scala对象,即它是一个单例(singleton)对象。
First, XML is a Scala object. That is, it is a singleton object.
以单请求/多响应消息交换模式为例。
Take the case of a single-request/multiple-response message exchange pattern.
其中一例源于“一餐”或者“单份”的意思。
In one case it went from meaning "a meal" to meaning "a single portion."
冠状动脉单支病变13例,其余为多支病变。
Single vessel disease was in 13 patients and the others were multi vessel disease.
让我们以按单生产为例进行说明。
让我们以按单生产为例进行说明。
应用推荐