net.sourceforge.domian.specification
Class ConjuntionSpecification<T>
java.lang.Object
net.sourceforge.domian.specification.AbstractSpecification<T>
net.sourceforge.domian.specification.AbstractCompositeSpecification<T>
net.sourceforge.domian.specification.ConjuntionSpecification<T>
- All Implemented Interfaces:
- CompositeSpecification<T>, Specification<T>
final class ConjuntionSpecification<T>
- extends AbstractCompositeSpecification<T>
A composite specification where all of the wrapped specifications
must be satisfied for this overall composite specification to be satisfied.
The boolean logic operator equivalent is AND.
- Since:
- 0.1
- Author:
- Eirik Torske
Methods inherited from class net.sourceforge.domian.specification.AbstractCompositeSpecification |
and, and, equals, getAccessibleObjectNameList, getAllSpecifications, getLeafSpecificationMap, hasConjunction, hasDisjunction, hashCode, isDisjointWith, isGeneralizationOf, isSpecialCaseOf, or, or, remainderUnsatisfiedBy, where, wrapWithNewSpecification |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
ConjuntionSpecification
ConjuntionSpecification(java.lang.Class<T> type)
isSpecifyingAllInstancesOfItsType
java.lang.Boolean isSpecifyingAllInstancesOfItsType()
- Specified by:
isSpecifyingAllInstancesOfItsType
in class AbstractCompositeSpecification<T>
- Returns:
true
if this specification will approve all possible instances of its declared type
isSatisfiedBy
public java.lang.Boolean isSatisfiedBy(T candidate)
- Description copied from interface:
Specification
- Specification satisfaction.
- Specified by:
isSatisfiedBy
in interface Specification<T>
- Overrides:
isSatisfiedBy
in class AbstractCompositeSpecification<T>
- Parameters:
candidate
- The candidate object
- Returns:
true
only if this specification is satisfied by/approves the given candidate (null
is never approved)
Copyright © 2006-2009. All Rights Reserved.