Interface Equals


public interface Equals
The Equals interface implements a method to determine when two objects are equal. The method includes ObjectLocators to track the comparison path and an EqualsStrategy to determine equality using the object's values.
  • Method Details

    • equals

      boolean equals(ObjectLocator thisLocator, ObjectLocator thatLocator, Object that, EqualsStrategy equalsStrategy)
      Method to determine object equality.
      Parameters:
      thisLocator - This object's location path.
      thatLocator - That object's location path.
      that - That other object.
      equalsStrategy - Determine equality using this and that object's values.
      Returns:
      True when the two object's are equal based on the given strategy.