Interface IdentityPicker<A extends AggregateRoot<I>,​I,​S extends BaseSelector>

  • Type Parameters:
    A - the type of the aggregate.
    I - the type of the identifier of the aggregate.
    S - the type of the selector.

    public interface IdentityPicker<A extends AggregateRoot<I>,​I,​S extends BaseSelector>
    An element of the SpecificationBuilder DSL to specify the identity of an aggregate.
    • Method Detail

      • is

        OperatorPicker<A,​S> is​(I id)
        Specify that the identity of the aggregate must be equal to the one passed as argument.
        Parameters:
        id - the identity.
        Returns:
        the next operation of the builder DSL, allowing to compose the just-defined specification with another one.
      • isNot

        OperatorPicker<A,​S> isNot​(I id)
        Specify that the identity of the aggregate must NOT be equal to the one passed as argument.
        Parameters:
        id - the identity.
        Returns:
        the next operation of the builder DSL, allowing to compose the just-defined specification with another one.