创建完全线程安全类的有效技术是将同步类合并到资源类中。
An effective technique for creating a fully thread-safe class is to merge the synchronization class into the resource class.
它也可以把几个相关的类合并为一个文件,但我还是建议不要。
It might be ok to combine several related classes into one file, but I'd still advise against that.
我这里有一个推荐:通过观察所有的公共类开始,用一个公共基类合并这些类到一个程序集中。
Here's my recommendation: Start by looking at all your public classes. Combine public classes with common base classes into assemblies.
如果您有一个域包,这个域包是唯一的一个其它类或者域包的服务器,您可以决定合并这两个域包。
If you have a domain package that is a server to only one other class or domain package, you may decide to combine the two packages.
合并导致气体流向星系中心,从而触发象快速的恒星形成一类的现象。
Mergers cause gases to flow towards the galactic center, which can trigger phenomena like rapid star formation.
而且,除非是新的服务方法,否则它们不包含元素,还有就是因为这些方法将被合并入现有类。
Also, they contain no elements except the new service method, again because the methods will be merged into existing classes.
类所有者具有比较两个版本并将它们合并为一个版本,以便所有者将其发布到包含包的权限。
The class owner has the authority to compare the two editions and merge them into a single version that the owner can release into the containing package.
比较合并进程中右边和左边的窗格,显示了 ModelFragment_1.efx及其先类的当前版本。
The left and right panes in the compare merge session show the current version of ModelFragment_1.efx and its predecessor.
ITDs允许Roo在一个单独的编译单元中生成代码,但ITDs在编译时被合并成同一个编译类。
ITDs allows Roo to generate code in a separate compilation unit, but ITDs are combined into the same compiled class at compilation time.
前面提到的TaskBarrier类被fork/join框架用来管理不同任务的边界,并合并运行结果,换句话说就是连接任务。
The TaskBarrier class mentioned above was used by the fork/join framework to manage the boundaries between the various tasks, and merge their results; in other words: to join the tasks.
如果是unionexpression类,evaluate方法将对两个操作数求值,检查在这两种情况下节点集的结果,然后使用排序合并策略组成联合。
In the case of the UnionExpression class, the evaluate method evaluates the two operands, checks that the result is in both cases a node-set, and then forms the union using a sort-merge strategy.
最重要的——转换不会执行合并操作,因为一旦您重新运行转换,那么您添加在类中的代码都会被覆盖。
Most importantly — the transformation does not perform a merge, so any code you added to a generated class will be overwritten if you re-run the transformation.
相反,我们只编写了一个助手类,该助手类只从不同数据源中提取检索到的数据值,并将这些数据值放到一个单独的、经过合并的结构中。
Instead, we wrote one helper class that simply took data values retrieved from different sources and placed them into a single, consolidated structure.
两家合并后将成为企业林立的日本消费类电子产品板块中最大的公司,这个板块中约有十二家公司在竞争。
The takeover would be the biggest in Japan’s crowded consumer electronics sector, where about a dozen companies compete.
很可悲,研究人员写道:“因为太少人看杂志和/或报纸,所以我们把这些数据合并起来组成一类报刊出版物。”
Sadly, the researchers wrote: "Because there were so few individuals who used magazines and/or newspapers, we combined these data with books into a single print media category."
我们本来可以再次使用XSL 执行,但我们将为 把 XSL文件合并到 XMLHelper类中最后创建一个方法。
We could again use XSL to do this, but instead we will create one last method for merging XML files in our XMLHelper class.
这可以显著的提高合并的速度,因为只有那些变更过的片段会载入(还有它们的逻辑模型的父类容器)。
This significantly speeds the merge session, because only those fragments that are changed are loaded (along with their parent containers of the logical model).
Cheetah生成了一个定制python类,该类实现代码来合并模板定义和动态数据。
Cheetah generates a custom Python class that implements code for merging the template definition with dynamic data.
如果您不熟悉这些类,那么fmt库的标记用直观的方式来封装国际化api,这种方式使您能够很容易将本地化功能合并到JSP应用程序中。
If not, the FMT library's tags encapsulate the internationalization API in an intuitive manner that makes it easy to incorporate localization features into your JSP applications.
我用expensr来合并所有的支出种类,并将它们分为消费、退休金、长期存款、短期存款四大类。
For part two, this is integrated with expensr. I removed all the categories and changed them all to Expense, Retirement, Long Term Savings and Short Term Savings.
第一版称为Freax,这是托瓦尔兹选取的名字,它把“自由”和“怪物”这两个要素合并起来——末尾的“x”是许多类Unix系统名称的共性。
The first version was called Freax, a name chosen by Torvalds because it incorporated elements of “free” and “freak” — the “x” at the end is a common attribute of the names of many Unix-like systems.
在合并资产负债表中,应当在所有者权益类单独列示少数股东权益。
In the consolidated balance sheets, the interests of minority shareholders shall be separately presented within the category of equities.
首先提出主泛化决策等概念,在数据过滤方法的基础上,利用等价类的合并对属性离散化。
Its basic idea is to merge the equivalence classes of q on basis of the methods of data filtering.
类和收款人管理,简化了与能力,容易合并在一起两类或两个受款人在任何时间。
Category and payee management is simplified with the ability to easily merge together two categories or two payees at any time.
从周围方言的入声都分阴阳两类的情况来看,浦城的入声调应当是阴入和阳入合并的结果。
Based on the tone IV of surrounding dialects, which are all split by registers into two categories, it appears that Pucheng's tone IV should be considered the result of IVA and IVB merging.
为了构建聚类代表,算法通过构造最佳匹配树,合并树,修剪树三步来实现。
The cluster representative was constructed by three successive steps named Tree matching, Tree merging and Tree pruning.
为了构建聚类代表,算法通过构造最佳匹配树,合并树,修剪树三步来实现。
The cluster representative was constructed by three successive steps named Tree matching, Tree merging and Tree pruning.
应用推荐