org.xwiki.component.util
Class ObjectUtils

java.lang.Object
  extended by org.xwiki.component.util.ObjectUtils

public final class ObjectUtils
extends Object

Various Object utilities.

Since:
2.1RC1
Version:
$Id: f906026101f5c7126e8f98e1d3131af81c318466 $

Method Summary
static boolean equals(Object object1, Object object2)
          Check if provided object are equals.
static int hasCode(Object object)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

equals

public static boolean equals(Object object1,
                             Object object2)
Check if provided object are equals. This method also take care of null.

Parameters:
object1 - the first object
object2 - the second object
Returns:
true of the provided objects are equal

hasCode

public static int hasCode(Object object)
Parameters:
object - the object
Returns:
the provided object hash code or 0 of the object is null


Copyright © 2004-2013 XWiki. All Rights Reserved.