net.sourceforge.domian.specification
Class AlwaysTrueSpecification

java.lang.Object
  extended by net.sourceforge.domian.specification.AbstractSpecification
      extended by net.sourceforge.domian.specification.AlwaysTrueSpecification
All Implemented Interfaces:
LeafSpecification, Specification

final class AlwaysTrueSpecification
extends AbstractSpecification
implements LeafSpecification

Leaf specification, always giving a positive response.

Also known as a tautology.

This specification is raw/not type parameterized by design.

Since:
0.4
Author:
Eirik Torske

Field Summary
 
Fields inherited from class net.sourceforge.domian.specification.AbstractSpecification
type
 
Constructor Summary
AlwaysTrueSpecification()
           
 
Method Summary
 boolean equals(java.lang.Object otherObject)
           
 java.lang.Boolean isDisjointWith(Specification specification)
           
 java.lang.Boolean isSatisfiedBy(java.lang.Object candidate)
           
 
Methods inherited from class net.sourceforge.domian.specification.AbstractSpecification
and, containsSimpleCompositesOnly, containsValueBoundSpecificationsOnly, createValueBoundSpecification, getAllSpecifications, getNegatedSpecification, getNumberOfLevelsOfNegations, getType, hasConjunction, hasDisjunction, intersectsWith, invert, isGeneralizationOf, isIntersectionOf, isInvertible, isOddNumber, isSpecialCaseOf, or, purify, toString, where
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface net.sourceforge.domian.specification.Specification
and, getType, isGeneralizationOf, isSpecialCaseOf, or, where
 

Constructor Detail

AlwaysTrueSpecification

public AlwaysTrueSpecification()
Method Detail

isSatisfiedBy

public java.lang.Boolean isSatisfiedBy(java.lang.Object candidate)
Specified by:
isSatisfiedBy in interface Specification

isDisjointWith

public java.lang.Boolean isDisjointWith(Specification specification)
Specified by:
isDisjointWith in interface Specification
Overrides:
isDisjointWith in class AbstractSpecification

equals

public final boolean equals(java.lang.Object otherObject)
Overrides:
equals in class java.lang.Object


Copyright © 2006-2010. All Rights Reserved.