第三类约束竞争的法门是通过法例管制。
第三类约束竞争的法门是通过法例管制。
例如,如果您知道您的泛型类仅用于引用类型,则应用类约束。
For example, if you know that your generic class is intended for use only with reference types, apply the class constraint.
主要研究两类约束最小支撑树问题,即点约束和边约束最小支撑树问题。
In this paper, two types of the minimum weight spanning tree with constraints are investigated.
给出了一类约束函数单调而目标函数非单调的非线性规划问题的一种新的求解方法。
A new method is applied to a kind of nonlinear programming problem with monotonic functions and non-monotonic objective functions.
通过对多目标联合概率数据关联方法性能特征的分析,将其归结为一类约束组合优化问题。
The properties of the joint probabilistic data association(JPDA)are analyzed, and data association is reduced to a sort of constraint combinatorial optimization problem.
我们注入这些类是由于与实际的系统实现有关的一些原因,而不是要反映业务约束。
We inject these classes for reasons having to do with our actual system implementation, rather than as a reflection of a business constraint.
约束启发组件搜索类模型,寻找预定义的反模式的出现。
The constraint elicitation component searches class models for occurrences of predefined anti-patterns.
该过程的核心包含一个允许您在保存模型的一致性的同时用约束细化类模型的基于模式的方法。
The core of this process comprises a pattern-based approach that allows you to refine class models with constraints while preserving the consistency of the models.
因为四个条件全部成立,所以这种情况会导致类装入器约束违反。
Because all four conditions hold, this situation results in a class loader constraint violation.
许多开发人员发现约束违反是一种很难解决的类装入问题。
Many developers find constraint violations to be a difficult type of class loading problem to resolve.
本文是本系列中的四篇文章的最后一篇,它研究了类装入器死锁和约束违反。
This article, the final installment in this four-part series, examines class loader deadlocks and constraint violations.
然而,用文本约束细化类模型是耗费时间并且易于出错的任务。
However, refining class models with textual constraints is a time-consuming and error-prone task.
架构规则:架构约束规则允许开发者定义基于模式的规则,拒绝不同包中类之间的引用。
Architecture rules: Architecture constraint rules allow the developers to define the pattern based rules to deny references between classes in different packages.
类装入器约束问题。
模型(本身就是模型元素)包含相应的模型元素,例如包、类、参数、方法和约束。
A model (which is a model element in itself) contains corresponding model elements, such as packages, classes, parameters, operations, and constraints.
这些不断更改的约束在不考虑状态的“单态”类关系图中容易丢失。
These changing constraints tend to get lost in a "monolithic" class diagram that does not take state into account.
所需的额外信息需要在类和约束、类图和顺序图的描述中确定。
The required additional information needs to be located in the descriptions of classes and constraints, class diagrams, and sequence diagrams.
对于第二个策略(每个类层次结构一个表),您必须用检测约束定义您自己的完整性。
For our second strategy (one table per class hierarchy), you'll have to define your integrity using check constraints.
ConstraintValidator:这是一个接口,具体的约束验证类需要实现该接口。
ConstraintValidator: This is the interface implemented by a constraint validation implementation.
任何gnosis . xml . validity类只能用符合xml方言有效性约束的参数进行实例化。
Any gnosis.xml.validity class can only be instantiated with arguments obeying XML dialect validity constraints.
避免类装入器约束违反。
清单8显示的airline类中在约束块内添加了验证规则。
Listing 8 shows the Airline class with validation rules added to the constraints block.
解决类装入器约束违反
根据JVM规范,当满足以下四个条件时,就违反了类装入器约束。
According to the JVM specification, a class loader constraint is violated when the following four conditions hold.
Grails在领域类相同的目录下查找约束声明。
Grails looks for the constraints declarations in the same directory as our domain class.
DrySQL会提取表格中的约束定义,并用它们自动生成模型类的关联。
DrySQL retrieves your table's constraint definitions, and USES them to automatically generate associations for your model class.
契约设计这样的概念允许我们在类中定义一些约束和限制。
The concept of Design by Contract allows you to define some constraints and invariants of your class. Statically typed languages have a primitive version of this.
毫无疑问,JAXB不在选择范围之列,因为它只接受XMLSchema作为约束模型来生成类。
Right off the bat, JAXB isn't going to be an option for you, as JAXB only accepts XML Schema as a constraint model for class generation.
同样,实例化泛型类的客户机类必须使用满足对构造函数存在所声明的约束的类来这样做。
Also, client classes that instantiate our generic class must do so with classes that meet the declared constraint on what constructors exist.
应用推荐