1 /*
2 * Copyright (c) 2005, The K-Wf Grid Consortium
3 * Fraunhofer Institute for Computer Architecture and Software Technology
4 * See http://www.kwfgrid.eu and http://www.first.fraunhofer.de for more details.
5 */
6 package net.kwfgrid.gwui.util;
7
8 public class Utilities {
9 private Utilities() {
10 }
11
12 /***
13 Checks if the two objects are equal. <code>null</code> values are regarded.
14 */
15 public static final boolean equal(Object o1, Object o2) {
16 return ((o1 == null && o2 == null) ||
17 (o1 != null && o1.equals(o2)));
18 }
19 }
20