|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Specification<T>
Specificaiton interface.
UseAbstractSpecification
as base for creating specifications, and
only the method isSatisfiedBy(Object)
must be implemented.
Method Summary | |
---|---|
Specification<T> |
and(Specification<T> specification)
Create a new specification that is the AND operation of this specification and another specification. |
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. |
Method Detail |
---|
boolean isSatisfiedBy(T t)
t
is satisfied by the specification.
t
- Object to test.
true
if t
satisfies the specification.Specification<T> and(Specification<T> specification)
this
specification and another specification.
specification
- Specification to AND.
Specification<T> or(Specification<T> specification)
this
specification and another specification.
specification
- Specification to OR.
Specification<T> not(Specification<T> specification)
this
specification.
specification
- Specification to NOT.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |