Returns the hash code for the given object. If the object is null, this method returns zero. Otherwise calls the method hashCode of the given object. @param o the given object. @return the hash code for the given object
(Object o)
| 90 | * @return the hash code for the given object |
| 91 | */ |
| 92 | public static int hashCodeFor(Object o) { |
| 93 | if (o == null) return 0; |
| 94 | return isArray(o) && !o.getClass().getComponentType().isPrimitive() ? java.util.Arrays.deepHashCode((Object[]) o) : o.hashCode() ; |
| 95 | } |
| 96 | |
| 97 | /** |
| 98 | * Casts the given object to the given type only if the object is of the given type. If the object is not of the given |