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 Detail

      • matches

        boolean matches​(PojoTypeModel<?> typeToInspect)
        Attempts to match a given type against this pattern, and return the result as a boolean.
        Parameters:
        typeToInspect - A type that may, or may not, match the pattern.
        Returns:
        true in the event of a match, false otherwise.