com.lti.utils.ObjUtils Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of fmj Show documentation
Show all versions of fmj Show documentation
Freedom for Media in Java
The newest version!
package com.lti.utils;
/**
* Utilities for performing equality tests, and doing deep copies and deep
* compares of objects.
*
* @author Ken Larson
*/
public final class ObjUtils
{
public static boolean equal(Object o1, Object o2)
{
if (o1 == null && o2 == null)
return true;
if (o1 == null || o2 == null)
return false;
// if (o1.getClass() != o2.getClass())
// return false;
return o1.equals(o2);
}
private ObjUtils()
{
super();
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy