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

com.lti.utils.ObjUtils Maven / Gradle / Ivy

There is a newer version: 1.0.2-jitsi
Show 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