Class IdMatcher
java.lang.Object
org.microbean.bean.IdMatcher
- All Implemented Interfaces:
BiPredicate<Annotated<? extends AnnotatedConstruct>, Id>, Matcher<Annotated<? extends AnnotatedConstruct>, Id>
public final class IdMatcher
extends Object
implements Matcher<Annotated<? extends AnnotatedConstruct>, Id>
- Author:
- Laird Nelson
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionCreates a newIdMatcher.IdMatcher(BeanTypeMatcher tm, BeanQualifiersMatcher qm, Matcher<? super Annotated<? extends AnnotatedConstruct>, ? super Id> other) Creates a newIdMatcher. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleantest(Annotated<? extends AnnotatedConstruct> aac, Id id) Tests the suppliedIdto see if it matches the suppliedAnnotated<? extends AnnotatedConstruct>and returns the result.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
-
IdMatcher
Creates a newIdMatcher.- Parameters:
tm- aBeanTypeMatcher; must not benullqm- aBeanQualifiersMatcher; must not benull- Throws:
NullPointerException- } iftmorqmisnull- See Also:
-
IdMatcher
public IdMatcher(BeanTypeMatcher tm, BeanQualifiersMatcher qm, Matcher<? super Annotated<? extends AnnotatedConstruct>, ? super Id> other) Creates a newIdMatcher.- Parameters:
tm- aBeanTypeMatcher; must not benullqm- aBeanQualifiersMatcher; must not benullother- a supplementaryMatcher; may benull- Throws:
NullPointerException- } iftmorqmisnull
-
-
Method Details
-
test
Tests the suppliedIdto see if it matches the suppliedAnnotated<? extends AnnotatedConstruct>and returns the result.- Specified by:
testin interfaceBiPredicate<Annotated<? extends AnnotatedConstruct>, Id>- Specified by:
testin interfaceMatcher<Annotated<? extends AnnotatedConstruct>, Id>- Parameters:
aac- anAnnotated<? extends AnnotatedConstruct>; must not benullid- anId; must not benull- Returns:
trueifidmatchesaac;falseotherwise- Throws:
NullPointerException- if any argument isnull- See Also:
-