-
Feature Request
-
Resolution: Obsolete
-
Major
-
None
-
None
-
None
During review, Antonin pointed out some useful predicates that should be reusable in the context of CDI.
static Predicate<Bean> hasType(Type type) { requireNonNull(type); return bean -> bean.getTypes().contains(type); } static Predicate<Annotation> isAnnotationType(Class<? extends Annotation> clazz) { requireNonNull(clazz); return annotation -> clazz.equals(annotation.annotationType()); }
We should consider adding them.