Interface BaseSelector<T,S extends BaseSelector<T,S>>
-
- Type Parameters:
T- the type of the object the specification applies to.S- the type of the selector.
- All Known Subinterfaces:
AggregateSelector<A,I,S>,PropertySelector<T,S>
public interface BaseSelector<T,S extends BaseSelector<T,S>>An element of theSpecificationBuilderDSL to select all or a part of the object a clause will apply to.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description TerminalOperation<T>all()Define a specification satisfied by any candidate.TerminalOperation<T>none()Define a specification NOT satisfied by any candidate.SpecificationPicker<T,S>whole()Selects the whole object to be the subject of a specification.
-
-
-
Method Detail
-
all
TerminalOperation<T> all()
Define a specification satisfied by any candidate.- Returns:
- the terminal operation of the builder DSL, allowing to build the final specification.
-
none
TerminalOperation<T> none()
Define a specification NOT satisfied by any candidate.- Returns:
- the terminal operation of the builder DSL, allowing to build the final specification.
-
whole
SpecificationPicker<T,S> whole()
Selects the whole object to be the subject of a specification. For instance, if an equality specification is chosen later in the DSL, the equality check will apply at the global object level.- Returns:
- the next operation of the builder DSL, allowing to choose the specification that will apply on the whole object.
-
-