de.caff.generics.matcher

## Class NullCheckMatcher<T1,T2>

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

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

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

  A matcher handling `null` values for a wrapped matcher.
  Author:
    Rammi

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `NullCheckMatcher(Matcher<T1,T2> wrapped)` 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

    - #### NullCheckMatcher

          public NullCheckMatcher(@NotNull
                                  Matcher<T1,T2> wrapped)

      Constructor.
      Parameters:
        `wrapped` - wrapped matcher not expecting `null` values

  - ### 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` - first object
        `object2` - second object
      Returns:
        `true` if this matcher considers the two objects equal
        `false` if this matcher considers them different