com.googlecode.flyway.core.util
Class ObjectUtils

java.lang.Object
  extended by com.googlecode.flyway.core.util.ObjectUtils

public class ObjectUtils
extends java.lang.Object

Collection of utility methods for dealing with objects.


Constructor Summary
ObjectUtils()
           
 
Method Summary
static boolean nullSafeEquals(java.lang.Object o1, java.lang.Object o2)
          Determine if the given objects are equal, returning true if both are null or false if only one is null.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ObjectUtils

public ObjectUtils()
Method Detail

nullSafeEquals

public static boolean nullSafeEquals(java.lang.Object o1,
                                     java.lang.Object o2)
Determine if the given objects are equal, returning true if both are null or false if only one is null.

Parameters:
o1 - first Object to compare
o2 - second Object to compare
Returns:
whether the given objects are equal


Copyright © 2012. All Rights Reserved.