Interface Matcher<T,​M>

    • Method Detail

      • match

        boolean match​(T t,
                      Pattern[] patterns,
                      M matchMode)
        True, if the given object t matches all provided patters (logical AND).
        Parameters:
        t - object that may match patterns
        patterns - patterns
        matchMode - specifies a particular way in which the match should occur
        Returns:
        true if the given object matches.