Class NullMatcher<T>

    • Field Detail

      • INSTANCE

        private static final NullMatcher<?> INSTANCE
        An instance of this matcher.
    • Constructor Detail

      • NullMatcher

        public NullMatcher()
    • Method Detail

      • make

        public static <T> ElementMatcher.Junction<T> make()
        Returns a matcher that only matches null.
        Type Parameters:
        T - The type of the matched entity.
        Returns:
        A matcher that only matches null.
      • matches

        public boolean matches​(T target)
        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