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