Class ElementMatcher.Junction.ForNonNullValues<W>

    • Constructor Detail

      • ForNonNullValues

        public ForNonNullValues()
    • Method Detail

      • matches

        public boolean matches​(@MaybeNull
                               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.
      • doMatch

        protected abstract boolean doMatch​(W target)
        Matches the supplied value if it was found not to be null.
        Parameters:
        target - The instance to be matched.
        Returns:
        true if the given element is matched by this matcher or false otherwise.