org.chromattic.common
Class Safe

java.lang.Object
  extended by org.chromattic.common.Safe

public class Safe
extends java.lang.Object

Version:
$Revision$
Author:
Julien Viet

Constructor Summary
Safe()
           
 
Method Summary
static boolean equals(java.lang.Object o1, java.lang.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(java.lang.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
 

Constructor Detail

Safe

public Safe()
Method Detail

equals

public static boolean equals(java.lang.Object o1,
                             java.lang.Object o2)
Returns true if one of the following conditions is satisfied:

Parameters:
o1 - the first object
o2 - the second object
Returns:
the safe equals value

hashCode

public static int hashCode(java.lang.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 © 2013 eXo Platform SAS. All Rights Reserved.