isMember(elem, collection) - JPA CriteriaBuilder's method

Method
javax.persistence.criteria.CriteriaBuilder
Predicate isMember(
  E elem,
  Expression<C> collection
)

Create a predicate that tests whether an element is a member of a collection. If the collection is empty, the predicate will be false.
Parameters:
elem - element
collection - expression
Returns:
is-member predicate
Since:
JPA 2.0