KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > hibernate > util > EqualsHelper


1 //$Id: EqualsHelper.java,v 1.2 2004/09/25 11:22:20 oneovthafew Exp $
2
package org.hibernate.util;
3
4 /**
5  * @author Gavin King
6  */

7 public final class EqualsHelper {
8
9     public static boolean equals(Object JavaDoc x, Object JavaDoc y) {
10         return x==y || ( x!=null && y!=null && x.equals(y) );
11     }
12     
13     private EqualsHelper() {}
14
15 }
16
Popular Tags