Interface AnnotationFilter.Singular<A extends Annotation>
-
- Type Parameters:
A
- Annotation type to check.
- All Superinterfaces:
AnnotationFilter
- Enclosing interface:
- AnnotationFilter
public static interface AnnotationFilter.Singular<A extends Annotation> extends AnnotationFilter
Concretization of filters that only match when there's a specified annotation present on element.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.perfectable.introspection.query.AnnotationFilter
AnnotationFilter.Singular<A extends Annotation>
-
-
Field Summary
-
Fields inherited from interface org.perfectable.introspection.query.AnnotationFilter
ABSENT, ACCEPTING, REJECTING
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description AnnotationFilter.Singular<A>
andMatching(Predicate<? super A> addedPredicate)
Adds check on annotation that is present.-
Methods inherited from interface org.perfectable.introspection.query.AnnotationFilter
and, matches, negated, or
-
-
-
-
Method Detail
-
andMatching
AnnotationFilter.Singular<A> andMatching(Predicate<? super A> addedPredicate)
Adds check on annotation that is present.- Parameters:
addedPredicate
- predicate that must be matched on annotation for resulting filter to match- Returns:
- filter that matches the same elements, but with additional check on specific annotation
-
-