net.sourceforge.domian.specification
Class NotNullSpecification<T>

java.lang.Object
  extended by net.sourceforge.domian.specification.AbstractSpecification<T>
      extended by 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

Field Summary
 
Fields inherited from class net.sourceforge.domian.specification.AbstractSpecification
type
 
Constructor Summary
NotNullSpecification(java.lang.Class<T> type)
           
 
Method Summary
 boolean equals(java.lang.Object otherObject)
           
 int hashCode()
           
 java.lang.Boolean isGeneralizationOf(Specification<? extends T> specification)
           
 java.lang.Boolean isSatisfiedBy(T candidate)
           
 
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
 
Methods inherited from interface net.sourceforge.domian.specification.Specification
and, getType, isDisjointWith, isSpecialCaseOf, or, where
 

Constructor Detail

NotNullSpecification

NotNullSpecification(java.lang.Class<T> type)
Method Detail

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.