Class EqualsUtil

java.lang.Object
com.aquima.interactions.foundation.utility.EqualsUtil

public final class EqualsUtil extends Object
Utility class that allows easy comparison between objects for equality.
Since:
5.0
Author:
O. Kerpershoek
  • Method Details

    • equals

      public static boolean equals(Object left, Object right, boolean checkListOrdering)
      Indicates whether an object equals another object. Both object are also equal when they are both null
      Parameters:
      left - object to compare
      right - object to compare
      checkListOrdering - Check the order of lists
      Returns:
      boolean indicating if both objects are equal.
    • equals

      public static boolean equals(Object left, Object right)
      Indicates whether an object equals another object. Both object are also equal when they are both null by default the ordering of a list is checked.
      Parameters:
      left - object to compare
      right - object to compare
      Returns:
      boolean indicating if both objects are equal.
    • equals

      public static boolean equals(Object[] left, Object[] right)
      Indicates whether an object array equals another object array. Both object are also equal when they are both null
      Parameters:
      left - object to compare
      right - object to compare
      Returns:
      boolean indicating if both arrays are equal.