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

org.exparity.hamcrest.beans.comparators.IsEqual Maven / Gradle / Ivy

Go to download

A Java library which provides a hamcrest matcher for matching objects and graphs which follow the Java beans standard

There is a newer version: 1.0.12
Show newest version

package org.exparity.hamcrest.beans.comparators;

import org.exparity.hamcrest.beans.TheSameAs.PropertyComparator;

/**
 * Implementation of a {@link PropertyComparator} which matches a string property regardless of case
 * 
 * @author Stewart Bissett
 */
public class IsEqual implements PropertyComparator {

	public boolean matches(final T lhs, final T rhs) {
		return lhs == null ? rhs == null : lhs.equals(rhs);
	}
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy