Class ElementMatcher.Junction.Conjunction<W>

    • Constructor Detail

      • Conjunction

        public Conjunction​(ElementMatcher<? super W> left,
                           ElementMatcher<? super W> right)
        Creates a new conjunction matcher.
        Parameters:
        left - The first matcher to consult for a match.
        right - The second matcher to consult for a match. This matcher is only consulted if the first matcher constituted a match.
    • Method Detail

      • matches

        public boolean matches​(W target)
        Description copied from interface: ElementMatcher
        Matches a target against this element matcher.
        Parameters:
        target - The instance to be matched.
        Returns:
        true if the given element is matched by this matcher or false otherwise.
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object