and

infix fun <T : Any> Specification<T>.and(other: Specification<T>): Specification<T>(source)

ANDs the given Specification to the current one.

Receiver

T – the type of the entity.

Return

The conjunction of the specifications.

Parameters

other

– the other Specification.


fun <T : Any> and(vararg predicateSpecification: Specification<T>): Specification<T>(source)

ANDs all the given Specifications together.

Return

The conjunction of all specifications.

Parameters

T

– the type of the entity.

predicateSpecification

– the Specifications to combine.