de.caff.generics.matcher

## Class NegateMatcher<T1,T2>

- java.lang.Object
- - de.caff.generics.matcher.NegateMatcher<T1,T2>

- All Implemented Interfaces:
    Matcher<T1,T2>, java.util.function.BiPredicate<T1,T2>

      public class NegateMatcher<T1,T2>
      extends java.lang.Object
      implements Matcher<T1,T2>

  A matcher which uses the negated result of a wrapped matcher.

  How this matcher handles `null` values depends on the wrapped matcher.

  Author:
    Rammi
  See Also:
    `Match.negate(de.caff.generics.Matcher)`

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `NegateMatcher(Matcher<T1,T2> matcher)` Constructor.

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `boolean` | `areEqual(T1 object1, T2 object2)` Are the given two objects considered equal?

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

    - ### Methods inherited from interface de.caff.generics.Matcher

      `foldLeft, foldRight, test`

    - ### Methods inherited from interface java.util.function.BiPredicate

      `and, negate, or`

- - ### Constructor Detail

    - #### NegateMatcher

          public NegateMatcher(Matcher<T1,T2> matcher)

      Constructor.
      Parameters:
        `matcher` - matcher to wrap

  - ### Method Detail

    - #### areEqual

          public boolean areEqual(T1 object1,
                                  T2 object2)

      Are the given two objects considered equal?
      Specified by:
        `areEqual` in interface `Matcher<T1,T2>`
      Parameters:
        `object1` - object 1
        `object2` - object 2
      Returns:
        `true` if this matcher considers the two object equals
        `false` if this matcher considers them different