Package arez

Interface EqualityComparator

All Known Implementing Classes:
ObjectsDeepEqualsComparator, ObjectsEqualsComparator
Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

Strategy interface used to determine whether two values are equal.
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    areEqual(Object oldValue, Object newValue)
    Return true if the supplied values are considered equal.
  • Method Details

    • areEqual

      boolean areEqual(@Nullable Object oldValue, @Nullable Object newValue)
      Return true if the supplied values are considered equal.
      Parameters:
      oldValue - the previous value.
      newValue - the current value.
      Returns:
      true if values are equal, false otherwise.