Class BeanQualifiersMatcher
java.lang.Object
org.microbean.bean.BeanQualifiersMatcher
- All Implemented Interfaces:
BiPredicate<Collection<? extends AnnotationMirror>, Collection<? extends AnnotationMirror>>, Matcher<Collection<? extends AnnotationMirror>, Collection<? extends AnnotationMirror>>
public class BeanQualifiersMatcher
extends Object
implements Matcher<Collection<? extends AnnotationMirror>, Collection<? extends AnnotationMirror>>
A
Matcher encapsulating CDI-compatible bean
qualifier matching rules.- Author:
- Laird Nelson
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal booleantest(Collection<? extends AnnotationMirror> receiverAnnotations, Collection<? extends AnnotationMirror> payloadAnnotations) Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface BiPredicate
and, negate, or
-
Constructor Details
-
BeanQualifiersMatcher
Creates a newBeanQualifiersMatcher.- Parameters:
aq- a (@link org.microbean.assign.Qualifiers}; must not benullbq- aQualifiers; must not benull- Throws:
NullPointerException- if any argument isnull
-
-
Method Details
-
test
public final boolean test(Collection<? extends AnnotationMirror> receiverAnnotations, Collection<? extends AnnotationMirror> payloadAnnotations) - Specified by:
testin interfaceBiPredicate<Collection<? extends AnnotationMirror>, Collection<? extends AnnotationMirror>>- Specified by:
testin interfaceMatcher<Collection<? extends AnnotationMirror>, Collection<? extends AnnotationMirror>>
-