/*
 * This is part of Geomajas, a GIS framework, http://www.geomajas.org/.
 *
 * Copyright 2008-2011 Geosparc nv, http://www.geosparc.com/, Belgium.
 *
 * The program is available in open source according to the GNU Affero
 * General Public License. All contributions in this program are covered
 * by the Geomajas Contributors License Agreement. For full licensing
 * details, see LICENSE.txt in the project root.
 */
package org.geomajas.gwt.client.util;

import org.geomajas.global.Api;

/**
 * Utility for equality checking.
 * 
 * @author Jan De Moerloose
 * @since 1.9.0
 * 
 */
@Api(allMethods = true)
public final class EqualsUtil {

	private EqualsUtil() {

	}

	/**
	 * Checks whether 2 objects are equal. Null-safe, 2 null objects are considered equal.
	 * 
	 * @param o1
	 * @param o2
	 * @return true if object are equal, false otherwise
	 */
	public static boolean isEqual(Object o1, Object o2) {
		return o1 == null ? o2 == null : o1.equals(o2);
	}
}

@@ -1,11 +1,10 @@
 /*
-%0D
 %0A * This
@@ -67,21 +67,19 @@
 as.org/.
-%0D
 %0A *
-%0D
 %0A * Copy
@@ -145,13 +145,11 @@
 ium.
-%0D
 %0A *
-%0D
 %0A * 
@@ -215,17 +215,16 @@
 U Affero
-%0D
 %0A * Gene
@@ -288,17 +288,16 @@
  covered
-%0D
 %0A * by t
@@ -358,17 +358,16 @@
 icensing
-%0D
 %0A * deta
@@ -407,22 +407,20 @@
 ct root.
-%0D
 %0A */
-%0D
 %0Apackage
@@ -449,19 +449,17 @@
 nt.util;
-%0D%0A%0D
+%0A
 %0Aimport 
@@ -486,16 +486,13 @@
 Api;
-%0D%0A%0D
+%0A
 %0A/**
-%0D
 %0A * 
@@ -521,22 +521,20 @@
 hecking.
-%0D
 %0A * 
-%0D
 %0A * @aut
@@ -553,17 +553,16 @@
 oerloose
-%0D
 %0A * @sin
@@ -573,19 +573,12 @@
 .9.0
-%0D%0A * %0D
 %0A */
-%0D
 %0A@Ap
@@ -597,17 +597,16 @@
  = true)
-%0D
 %0Apublic 
@@ -629,19 +629,17 @@
 lsUtil %7B
-%0D%0A%0D
+%0A
 %0A%09privat
@@ -658,23 +658,39 @@
 () %7B
-%0D%0A%0D%0A%09%7D%0D%0A%0D
+%0A%09%09// hide constructor%0A%09%7D%0A
 %0A%09/**
-%0D
 %0A%09 *
@@ -777,15 +777,13 @@
 ual.
-%0D
 %0A%09 * 
-%0D
 %0A%09 *
@@ -796,24 +796,71 @@
 m o1
-%0D%0A%09 * @param o2%0D
+ first object to compare%0A%09 * @param o2 second object to compare
 %0A%09 *
@@ -913,15 +913,13 @@
 wise
-%0D
 %0A%09 */
-%0D
 %0A%09pu
@@ -969,17 +969,16 @@
 ct o2) %7B
-%0D
 %0A%09%09retur
@@ -1023,13 +1023,10 @@
 o2);
-%0D
 %0A%09%7D
-%0D
 %0A%7D
-%0D
 %0A

add javadoc