Due to type-erasure we cannot name these the same as the javax.persistence.criteria.CriteriaBuilder counterparts. We could for the form of #size taking a Collection but for consistency with these other new methods, I propose we do not. So we will have the following additions:
- <M extends Map<?,?>> Predicate isMapEmpty(Expression<M> mapExpression);
- <M extends Map<?,?>> Predicate isMapNotEmpty(Expression<M> mapExpression);
- <M extends Map<?,?>> Expression<Integer> mapSize(Expression<M> mapExpression);
- <M extends Map<?,?>> Expression<Integer> mapSize(M map);
|