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 the SpecificationBuilder DSL to select all or a part of the object a clause will apply to.
    • 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.