Package org.xwiki.component.util
Class ObjectUtils
- java.lang.Object
-
- org.xwiki.component.util.ObjectUtils
-
public final class ObjectUtils extends Object
Various Object utilities.- Since:
- 2.1RC1
- Version:
- $Id: e98e004e29b1d6656d3e0d89dfe9137155879810 $
-
-
Method Summary
All Methods Static Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static boolean
equals(Object object1, Object object2)
Deprecated.useObjects.equals(Object, Object)
insteadstatic int
hasCode(Object object)
Deprecated.useObjects.hashCode(Object)
instead
-
-
-
Method Detail
-
equals
@Deprecated public static boolean equals(Object object1, Object object2)
Deprecated.useObjects.equals(Object, Object)
insteadCheck if provided object are equals. This method also take care of null.- Parameters:
object1
- the first objectobject2
- the second object- Returns:
- true of the provided objects are equal
-
hasCode
@Deprecated public static int hasCode(Object object)
Deprecated.useObjects.hashCode(Object)
instead- Parameters:
object
- the object- Returns:
- the provided object hash code or 0 of the object is null
-
-