net.sf.composite.util
Class ObjectUtils

java.lang.Object
  extended by net.sf.composite.util.ObjectUtils

public class ObjectUtils
extends java.lang.Object

Since:
Mar 11, 2005
Author:
Matt Sgarlata

Constructor Summary
ObjectUtils()
           
 
Method Summary
static boolean equals(java.lang.Object object1, java.lang.Object object2)
          Compares two objects for equality.
static java.lang.String getObjectDescription(java.lang.Object object)
           
static boolean isEmpty(java.lang.Object object)
           
 
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

getObjectDescription

public static java.lang.String getObjectDescription(java.lang.Object object)

isEmpty

public static boolean isEmpty(java.lang.Object object)

equals

public static boolean equals(java.lang.Object object1,
                             java.lang.Object object2)
Compares two objects for equality. This method is safe to use when dealing with the standard Java notion of equality that involves only Object.equals(java.lang.Object).

Parameters:
object1 - the first object
object2 - the second object
Returns:
true if (A) object1 and object2 are both null or (B) object1 and object2 are both are both non- null and equal to each other as defined by Object.equals(java.lang.Object) or (C) the objects are BigDecimal s that contain identical values or
false, otherwise


Copyright © 2005-2008.