is Member
fun <T : Any, E, P : Collection<E>> KProperty1<T, P>.isMember(value: E): PredicateSpecification<T>(source)
Creates a PredicateSpecification that tests whether an element is a member of a collection. If the collection is empty, the predicate will be false.
Receiver
T – the type of the entity.
E - the type of the element in the Collection.
P - the type of the Collection property.
Return
A PredicateSpecification that tests whether an element is a member of a collection.
Parameters
value
– the element value to check for membership.