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: f906026101f5c7126e8f98e1d3131af81c318466 $
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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 objectobject2 - 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–2014 XWiki. All rights reserved.