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

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

There is a newer version: 0.95
Show newest version
package de.danielbechler.diff.identity;

import de.danielbechler.util.Objects;

/**
 * Default implementation that uses Object.equals.
 */
public class EqualsIdentityStrategy implements IdentityStrategy
{
	private static final EqualsIdentityStrategy instance = new EqualsIdentityStrategy();

	public boolean equals(final Object working, final Object base)
	{
		return Objects.isEqual(working, base);
	}

	public static EqualsIdentityStrategy getInstance()
	{
		return instance;
	}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy