org.chromattic.common
Class Safe
java.lang.Object
org.chromattic.common.Safe
public class Safe
- extends Object
- Version:
- $Revision$
- Author:
- Julien Viet
|
Constructor Summary |
Safe()
|
|
Method Summary |
static boolean |
equals(Object o1,
Object o2)
Returns true if one of the following conditions is satisfied:
o1 and o2 are both null
o1 and o2 are not null and the invocation of the equals method on o1 with o2 as argument returns true
|
static int |
hashCode(Object o)
Returns the object's hash code if the object is not null otherwise return zero. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Safe
public Safe()
equals
public static boolean equals(Object o1,
Object o2)
- Returns true if one of the following conditions is satisfied:
- o1 and o2 are both null
- o1 and o2 are not null and the invocation of the
equals method on o1 with o2 as argument returns true
- Parameters:
o1 - the first objecto2 - the second object
- Returns:
- the safe equals value
hashCode
public static int hashCode(Object o)
- Returns the object's hash code if the object is not null otherwise return zero.
- Parameters:
o - the object to get the hashcode from
- Returns:
- the safe hash code value
Copyright © 2010 eXo Platform SAS. All Rights Reserved.