Class ElementMatcher.Junction.Disjunction<W>

    • Field Detail

      • matchers

        private final java.util.List<ElementMatcher<? super W>> matchers
        The element matchers that constitute this disjunction.
    • Constructor Detail

      • Disjunction

        @Enhance
        public Disjunction​(ElementMatcher<? super W>... matcher)
        Creates a new disjunction matcher.
        Parameters:
        matcher - The represented matchers in application order.
      • Disjunction

        public Disjunction​(java.util.List<ElementMatcher<? super W>> matchers)
        Creates a new disjunction matcher.
        Parameters:
        matchers - The represented matchers in application order.
    • Method Detail

      • matches

        public boolean matches​(@UnknownNull
                               W target)
        Matches a target against this element matcher.
        Parameters:
        target - The instance to be matched or null.
        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