T - the type of the candidate object the specification applies to.public class AndSpecification<T> extends Object implements Specification<T>
| Constructor and Description |
|---|
AndSpecification(Specification<? super T>... specifications)
Creates a specification composing the specifications passed as argument with a logical AND.
|
| Modifier and Type | Method and Description |
|---|---|
Specification<? super T>[] |
getSpecifications()
Returns the composed specifications.
|
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, waitand, any, asPredicate, negate, none, or@SafeVarargs public AndSpecification(Specification<? super T>... specifications)
specifications - the specifications to compose in a logical AND.public boolean isSatisfiedBy(T candidate)
SpecificationisSatisfiedBy in interface Specification<T>candidate - the candidate object to check.public Specification<? super T>[] getSpecifications()
Copyright © 2013-2018–2019 SeedStack. All rights reserved.