T
- The target type for this Specpublic class OrSpec<T> extends CompositeSpec<T>
CompositeSpec
which requires any one of its specs to be true in order to evaluate to
true. Uses lazy evaluation.Constructor and Description |
---|
OrSpec() |
OrSpec(java.lang.Iterable<? extends Spec<? super T>> specs) |
OrSpec(Spec<? super T>... specs) |
Modifier and Type | Method and Description |
---|---|
int |
hashCode() |
boolean |
isSatisfiedBy(T object) |
equals, getSpecs, isEmpty
public boolean isSatisfiedBy(T object)
public int hashCode()
hashCode
in class CompositeSpec<T>