|
||||||||||
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>
public abstract class AbstractSpecification<T>
Abstract base implementation of composite Specification
with default
implementations for and
, or
and not
.
Constructor Summary | |
---|---|
AbstractSpecification()
|
Method Summary | |
---|---|
Specification<T> |
and(Specification<T> specification)
Create a new specification that is the AND operation of this specification and another specification. |
abstract boolean |
isSatisfiedBy(T t)
Check if t is satisfied by the specification. |
Specification<T> |
not(Specification<T> specification)
Create a new specification that is the NOT operation of this specification. |
Specification<T> |
or(Specification<T> specification)
Create a new specification that is the OR operation of this specification and another specification. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public AbstractSpecification()
Method Detail |
---|
public abstract boolean isSatisfiedBy(T t)
t
is satisfied by the specification.
isSatisfiedBy
in interface Specification<T>
t
- Object to test.
true
if t
satisfies the specification.public Specification<T> and(Specification<T> specification)
this
specification and another specification.
and
in interface Specification<T>
specification
- Specification to AND.
public Specification<T> or(Specification<T> specification)
this
specification and another specification.
or
in interface Specification<T>
specification
- Specification to OR.
public Specification<T> not(Specification<T> specification)
this
specification.
not
in interface Specification<T>
specification
- Specification to NOT.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |