src/main/java/org/jboss/util/HashCode.java
/**
    * Generate a hash code for an object.
    *
    * @param obj     Object to generate hashcode for.
    * @return        Hash code.
    */
Generate a hash code for an object.
@param obj     Object to generate hashcode for.
@return        Hash code.
Generate a hash code for an object . @param obj Object to generate hashcode for . @return Hash code .
public static int generate(final Object obj) {
      if (obj != null) {
         return obj.hashCode();
      }
      return NULL_HASHCODE;
   }
public static int generate ( final Object obj ) { if ( obj != null ) { return obj . hashCode ( ) ; } return NULL_HASHCODE ; }
Generate a hash code for an object.
Generate a hash code for an object .