Class TrueSpecification<T>
- java.lang.Object
-
- org.seedstack.business.specification.TrueSpecification<T>
-
- Type Parameters:
T- the type of the candidate object the specification applies to.
- All Implemented Interfaces:
Specification<T>
public class TrueSpecification<T> extends Object implements Specification<T>
An always true specification, satisfied by any candidate object.
-
-
Constructor Summary
Constructors Constructor Description TrueSpecification()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanisSatisfiedBy(T candidate)Evaluates if the candidate object passed as argument satisfies the specification.StringtoString()-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.seedstack.business.specification.Specification
and, asPredicate, negate, or
-
-
-
-
Method Detail
-
isSatisfiedBy
public boolean isSatisfiedBy(T candidate)
Description copied from interface:SpecificationEvaluates if the candidate object passed as argument satisfies the specification.- Specified by:
isSatisfiedByin interfaceSpecification<T>- Parameters:
candidate- the candidate object to check.- Returns:
- true if the candidate object satisfies the specification, false otherwise.
-
-