Specification pattern: Difference between revisions

Content deleted Content added
FrescoBot (talk | contribs)
m Bot: link syntax and minor changes
Line 459:
 
export class AndSpecification extends CompositeSpecification {
constructor(private leftCondition: ISpecification;, private rightCondition: ISpecification) {
private rightCondition: ISpecification;
 
constructor(left: ISpecification, right: ISpecification) {
super();
this.leftCondition = left;
this.rightCondition = right;
}
 
Line 474 ⟶ 469:
 
export class AndNotSpecification extends CompositeSpecification {
constructor(private leftCondition: ISpecification;, private rightCondition: ISpecification) {
private rightCondition: ISpecification;
 
constructor(left: ISpecification, right: ISpecification) {
super();
this.leftCondition = left;
this.rightCondition = right;
}
 
Line 489 ⟶ 479:
 
export class OrSpecification extends CompositeSpecification {
constructor(private leftCondition: ISpecification;, private rightCondition: ISpecification) {
private rightCondition: ISpecification;
 
constructor(left: ISpecification, right: ISpecification) {
super();
this.leftCondition = left;
this.rightCondition = right;
}
 
Line 504 ⟶ 489:
 
export class OrNotSpecification extends CompositeSpecification {
constructor(private leftCondition: ISpecification;, private rightCondition: ISpecification) {
private rightCondition: ISpecification;
 
constructor(left: ISpecification, right: ISpecification) {
super();
this.leftCondition = left;
this.rightCondition = right;
}
 
Line 519 ⟶ 499:
 
export class NotSpecification extends CompositeSpecification {
constructor(private wrapped: ISpecification;) {
 
constructor(spec: ISpecification) {
super();
this.wrapped = spec;
}
 
Line 530 ⟶ 507:
}
}
 
</syntaxhighlight>