在同一时间只能引用单例方法一次。
在同一时间只能引用单例方法一次。
单例、生成器和工厂方法设计模式被视为是创建型的模式,因它们可协助对象的构建。
The singleton, builder, and factory method design patterns are considered creational patterns, as they assist in the construction of objects.
当该构造方法运行的同时,恰好被另一线程访问,两个单例对象将被创建。
Two singletons will be created if the constructor runs and simultaneously another thread calls the method.
静态getInstance方法包含单例的模板代码。
The static getInstance method contains the template code for a singleton.
您可以像调用静态方法一样访问单例对象的方法。
You can access methods on singleton objects similar to how you would call static methods.
最后,在单例模式的一些实现方式中,单例类的子类能够动态地重载方法,这是静态方法所不能办到的。
With some implementations of the singleton, you allow writers of subclasses to override methods polymorphically, something not possible with static methods.
清单4显示了使用方法而非属性来指定适当类的单例。
Listing 4 shows a version of the singleton that USES a method instead of an attribute to specify the appropriate class.
同时,如果使用创建单实例的方法实现单例模式,单例类还具有创建多个实例的变通能力。
Likewise, with a singleton implemented as single instance, you leave open the possibility of altering the class to create more instances in the future.
方法对经ct或MRI诊断为垂体腺瘤的12例患者采用经单鼻腔蝶窦入路手术。
Methods The CT, or-MRI diagnosis of pituitary adenoma after 12 patients were treated with a single Endonasal Transsphenoidal Surgery.
方法通过激光扫描仪对一例单侧眼眶部缺损石膏面部模型进行数据采集。
Methods By laser scanning apparatus the plaster face model was scanned and the primitive face point data were acquired.
方法:经单鼻孔蝶窦入路行垂体腺瘤切除术38例。
Methods: 38 patients underwent pituitary adenoma resection by single nostril transsphenoidal approach.
方法回顾性分析10例胎儿单脐动脉畸形及合并其他畸形声像图特点,并与产后结果及病理学检查对照。
Methods the ultrasonographic features and the accompanying abnormalities of 10 cases with single umbilical artery were analysed and compared with the pathological findings.
方法对135例单胎自然分娩的胎盘剥离声像图进行分类,并采用称重法测量第三产程出血量。
Methods All 135 patients had spontaneous delivery at term. The placenta separation was categorized during the third stage labor with ultrasonographic imaging, and quantity of bleeding measured.
方法:采用国产单球囊导管对4例风湿性心脏病二尖瓣狭窄患者进行PBMV。
Method: 4 cases of rheumatic mitral stenosis were treated by PBMV with single balloon catheter.
方法追踪观察60例先天性内斜视手术治疗后眼位和双眼单视功能的变化,并进行分析。
Methods Eye position and binocular vision was analyzed in 60 cases of congenital esotropia treated by surgery.
方法:通过对单胎、初产50例对照组和观察组的不同护理进行比较。
Method: Through a single child, 50 cases of the early production of the control group and observation group to compare the different care.
方法以临床医师的判断作为疾病活动程度的外部标准,对117例狼疮性肾炎患者的资料进行单因素相关分析和多元回归分析。
Methods Univariate analysis and multivariate regression were performed on data of 117 patients with lupus nephritis, with the physicians global assessment of disease activity as the external criteria.
方法:14例发病1个月内的单侧膝关节骨关节炎患者的等速肌力参数的自身对照研究。
Method: With self control group, the parameters of knee extensors and flexors were isokinetically recorded on 14 unilateral knee osteoarthritic patients who suffered within 1 month.
本文方法既能计算单桩荷载传递又能预测单桩变形特性。算例结果表明:本方法有较高的计算精度。
Both load transfer characteristic and settlement characteristic of single pile can be predicted using this method, through a case, have shown that the new method is rational.
方法:本组8例病人,术前经X线钡餐造影检查确诊,用从单球囊到双球囊逐渐扩张的方法连续多次扩张。
Methods: 8 cases were diagnosed with barium meal by X-ray therapy before operation, by dilating gradually single balloon to double balloon.
方法对50例间歇性外斜视患者术前术后的双眼单视功能进行测定并分析比较。
Methods The binocular visual function were determined and analysed with 50 cases of intermittent exotropia before and after surgery.
方法:17例胫腓骨远端开放性粉碎骨折急诊行清创单臂外固定架固定。
Methods 17 cases of fractures were cleaned and fixed on the single arm fix frame in the emergency treatment.
文章以一座单塔单索面竖琴式预应力混凝土桥为例,详述了静动载试验的原理、方法、过程、测试项目、试验工况等。
Taking the single pylon single cable plane pre-stressed concrete cable-stayed bridge as example, the paper discusses the principle, methods, testing items, and experiment conditions, etc.
方法:应用彩色多普勒超声仪,检测ESWL治疗60例单侧肾结石病人过程中结石旁小血管阻力指数。
Methods: the intrarenal vascular resistance index in 60 patients was measured with Doppler ultrasound techniques before and after ESWL in the treated and contralateral kidneys.
方法应用单侧外固定器治疗44名肱骨干骨折不愈合的患者,其中37例已采用外科手术内固定治疗。
Methods 44 cases of nonunion humeral fractures were treated with unilateral external fixation. Among them, 37 cases had been previously treated surgically.
方法:对31例单侧完全性唇腭裂婴幼儿进行术前鼻-牙槽骨塑形及同期唇-鼻-牙槽骨整复术。
METHODS: 31 cases with unilateral complete cleft lip and palate underwent early simultaneous lip-nose-alveolar repair following presurgical nasoalveolar molding.
方法单侧颈内动脉狭窄程度为70%-99%患者30例,行动态磁敏感对比增强磁共振成像。
Methods 30 patients with unilateral carotid artery stenosis ranging form 70% to 99% were selected to be scanned with PWI.
方法临床选择16~24岁,单侧完全性唇腭裂病例6例,已行唇腭裂修补术,严重上颌发育不足的患者。
Method Six cases with unilateral complete cleft palate and severe constricted maxilla (age from 16 to 24 years old)were selected, who have been repaired cleft lip and palate previously.
方法临床选择16~24岁,单侧完全性唇腭裂病例6例,已行唇腭裂修补术,严重上颌发育不足的患者。
Method Six cases with unilateral complete cleft palate and severe constricted maxilla (age from 16 to 24 years old)were selected, who have been repaired cleft lip and palate previously.
应用推荐