ObjectUtil.java

package com.ociweb.lang; public class ObjectUtil { /** * This compares two object references and works * regardless of whether one or both are null. */ public static boolean equals(Object o1, Object o2) { return o1 == null ? o2 == null : o1.equals(o2); } }

Copyright © 2007 Object Computing, Inc. All rights reserved.