Class BeanTypeMatcher
java.lang.Object
org.microbean.assign.AbstractTypeMatcher
org.microbean.bean.BeanTypeMatcher
- All Implemented Interfaces:
Constable,BiPredicate<TypeMirror,,TypeMirror> Matcher<TypeMirror,TypeMirror>
An
AbstractTypeMatcher encapsulating CDI-compatible
type matching rules.- Author:
- Laird Nelson
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal booleantest(TypeMirror receiver, TypeMirror payload) Returnstrueif and only if the suppliedpayloadargument matches the suppliedreceiverargument, according to the rules defined by section 2.4.2.1 of the CDI specification.Methods inherited from class org.microbean.assign.AbstractTypeMatcher
allAre, covariantlyAssignable, describeConstable, domain, identical, named, nonGenericClassOrRawType, unboundedTypeVariable, yieldsRawTypeMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.util.function.BiPredicate
and, negate, or
-
Constructor Details
-
BeanTypeMatcher
Creates a newBeanTypeMatcher.- Parameters:
domain- aDomain; must not benull- Throws:
NullPointerException- ifdomainisnull- See Also:
-
-
Method Details
-
test
Returnstrueif and only if the suppliedpayloadargument matches the suppliedreceiverargument, according to the rules defined by section 2.4.2.1 of the CDI specification.- Parameters:
receiver- the left hand side of a type assignment; must not benullpayload- the right hand side of a type assignment; must not benull- Returns:
trueif and only if the suppliedpayloadargument matches the suppliedreceiverargument, according to the rules defined by section 2.4.2.1 of the CDI specification;falseotherwise- Throws:
NullPointerException- if either argument isnullIllegalArgumentException- if either type is any type other than an array type, aprimitive type, or a declared type
-