de.danielbechler.diff.identity.IdentityStrategy Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of java-object-diff Show documentation
Show all versions of java-object-diff Show documentation
Framework to detect and handle differences between Java objects
The newest version!
package de.danielbechler.diff.identity;
/**
* Allows to configure the way objects identities are established when comparing
* collections via {@linkplain de.danielbechler.diff.differ.CollectionDiffer}.
*/
public interface IdentityStrategy
{
/**
* TODO Contract: {@linkplain IdentityStrategy#equals(Object working, Object base)} must always be true
* when working == base
*
* @param working
* @param base
* @return
*/
boolean equals(Object working, Object base);
}