Interface TypePatternMatcher
- All Known Subinterfaces:
ExtractingTypePatternMatcher
public interface TypePatternMatcher
A pattern-matching implementation for generic types.
For example, such a pattern could be described with the expression Collection<?>,
which would only match against Collection and its subclasses.
-
Method Summary
Modifier and TypeMethodDescriptiondefault TypePatternMatcherand(TypePatternMatcher other) booleanmatches(PojoTypeModel<?> typeToInspect) Attempts to match a given type against this pattern, and return the result as aboolean.default TypePatternMatchernegate()
-
Method Details
-
matches
Attempts to match a given type against this pattern, and return the result as aboolean.- Parameters:
typeToInspect- A type that may, or may not, match the pattern.- Returns:
truein the event of a match,falseotherwise.
-
negate
-
and
-