Interface TypePatternMatcher
-
- All Known Subinterfaces:
ExtractingTypePatternMatcher
public interface TypePatternMatcherA pattern-matching implementation for generic types.For example, such a pattern could be described with the expression
Collection<?>, which would only match againstCollectionand its subclasses.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default TypePatternMatcherand(TypePatternMatcher other)booleanmatches(PojoTypeModel<?> typeToInspect)Attempts to match a given type against this pattern, and return the result as aboolean.default TypePatternMatchernegate()
-
-
-
Method Detail
-
matches
boolean matches(PojoTypeModel<?> typeToInspect)
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
default TypePatternMatcher negate()
-
and
default TypePatternMatcher and(TypePatternMatcher other)
-
-