All Downloads are FREE. Search and download functionalities are using the official Maven repository.

de.danielbechler.diff.identity.IdentityStrategy Maven / Gradle / Ivy

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);
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy