org.apache.commons.lang.ObjectUtils.java Source code

Java tutorial

Introduction

Here is the source code for org.apache.commons.lang.ObjectUtils.java

Source

package org.apache.commons.lang;

public class ObjectUtils {

    public static boolean equals(Object object1, Object object2) {
        if (object1 == object2) {
            return true;
        }
        if ((object1 == null) || (object2 == null)) {
            return false;
        }
        return object1.equals(object2);
    }

}