T
- the type of the candidate object the specification applies to.public class NotSpecification<T> extends Object implements Specification<T>
Constructor and Description |
---|
NotSpecification(Specification<T> specification)
Creates a specification negating the specification passed as argument.
|
Modifier and Type | Method and Description |
---|---|
Specification<T> |
getSpecification()
Returns the specification that negated.
|
boolean |
isSatisfiedBy(T candidate)
Evaluates if the candidate object passed as argument satisfies the specification.
|
String |
toString() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
and, any, asPredicate, negate, none, or
public NotSpecification(Specification<T> specification)
specification
- the specification to negate.public boolean isSatisfiedBy(T candidate)
Specification
isSatisfiedBy
in interface Specification<T>
candidate
- the candidate object to check.public Specification<T> getSpecification()
Copyright © 2013-2018–2019 SeedStack. All rights reserved.