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 == null) {
            return (object2 == null);
        } else if (object2 == null) {
            return false;
        } else {
            return object1.equals(object2);
        }
    }

}