|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object se.citerus.dddsample.domain.shared.AbstractSpecification<T> se.citerus.dddsample.domain.shared.OrSpecification<T>
public class OrSpecification<T>
OR specification, used to create a new specifcation that is the OR of two other specifications.
Constructor Summary | |
---|---|
OrSpecification(Specification<T> spec1,
Specification<T> spec2)
Create a new OR specification based on two other spec. |
Method Summary | |
---|---|
boolean |
isSatisfiedBy(T t)
Check if t is satisfied by the specification. |
Methods inherited from class se.citerus.dddsample.domain.shared.AbstractSpecification |
---|
and, not, or |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public OrSpecification(Specification<T> spec1, Specification<T> spec2)
spec1
- Specification one.spec2
- Specification two.Method Detail |
---|
public boolean isSatisfiedBy(T t)
t
is satisfied by the specification.
isSatisfiedBy
in interface Specification<T>
isSatisfiedBy
in class AbstractSpecification<T>
t
- Object to test.
true
if t
satisfies the specification.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |