net.sourceforge.domian.specification
Class NotEqualSpecification<T>
java.lang.Object
net.sourceforge.domian.specification.AbstractSpecification<T>
net.sourceforge.domian.specification.AbstractValueBoundSpecification<T>
net.sourceforge.domian.specification.NotEqualSpecification<T>
- All Implemented Interfaces:
- LeafSpecification<T>, Specification<T>, ValueBoundSpecification<T>
final class NotEqualSpecification<T>
- extends AbstractValueBoundSpecification<T>
| Methods inherited from class net.sourceforge.domian.specification.AbstractSpecification |
and, containsSimpleCompositesOnly, containsValueBoundSpecificationsOnly, createValueBoundSpecification, getAllSpecifications, getNegatedSpecification, getNumberOfLevelsOfNegations, getType, hasConjunction, hasDisjunction, intersectsWith, isGeneralizationOf, isIntersectionOf, isOddNumber, isSpecialCaseOf, or, purify, toString, where |
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
NotEqualSpecification
NotEqualSpecification(T value)
isInvertible
protected java.lang.Boolean isInvertible()
- Overrides:
isInvertible in class AbstractSpecification<T>
invert
protected Specification<T> invert()
- Overrides:
invert in class AbstractValueBoundSpecification<T>
getBinaryRelation
protected RelationalOperator getBinaryRelation(java.lang.Boolean negated)
- Specified by:
getBinaryRelation in class AbstractValueBoundSpecification<T>
- Parameters:
negated - when true the returned binary relation will be inverted
- Returns:
- the mathematical binary relation bound to this value bound specification
getDisjointDecision
protected java.lang.Boolean getDisjointDecision(RelationalOperator candidateRelationalOperator,
java.lang.Object candidateOperandValue)
- Specified by:
getDisjointDecision in class AbstractValueBoundSpecification<T>
- Returns:
true if the given candidate relation/operand pair leads to a disjoint relationship with this value bound specification
isDisjointWith
public java.lang.Boolean isDisjointWith(Specification<?> specification)
- Specified by:
isDisjointWith in interface Specification<T>- Overrides:
isDisjointWith in class AbstractValueBoundSpecification<T>
isSatisfiedBy
public java.lang.Boolean isSatisfiedBy(T candidate)
Copyright © 2006-2010. All Rights Reserved.