net.sourceforge.domian.specification
Class NotNullSpecification<T>
java.lang.Object
net.sourceforge.domian.specification.AbstractSpecification<T>
net.sourceforge.domian.specification.NotNullSpecification<T>
- All Implemented Interfaces:
- LeafSpecification<T>, Specification<T>
class NotNullSpecification<T>
- extends AbstractSpecification<T>
- implements LeafSpecification<T>
Leaf specification, specifying all objects that is not null.
- Since:
- 0.1
- Author:
- Eirik Torske
Methods inherited from class net.sourceforge.domian.specification.AbstractSpecification |
and, containsSimpleCompositesOnly, containsValueBoundSpecificationsOnly, createValueBoundSpecification, getAllSpecifications, getNegatedSpecification, getNumberOfLevelsOfNegations, getType, hasConjunction, hasDisjunction, intersectsWith, invert, isDisjointWith, isIntersectionOf, isInvertible, isOddNumber, isSpecialCaseOf, or, purify, toString, where |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
NotNullSpecification
NotNullSpecification(java.lang.Class<T> type)
isSatisfiedBy
public java.lang.Boolean isSatisfiedBy(T candidate)
- Specified by:
isSatisfiedBy
in interface Specification<T>
isGeneralizationOf
public java.lang.Boolean isGeneralizationOf(Specification<? extends T> specification)
- Specified by:
isGeneralizationOf
in interface Specification<T>
- Overrides:
isGeneralizationOf
in class AbstractSpecification<T>
hashCode
public int hashCode()
- Overrides:
hashCode
in class java.lang.Object
equals
public boolean equals(java.lang.Object otherObject)
- Overrides:
equals
in class java.lang.Object
Copyright © 2006-2010. All Rights Reserved.