Android Utililty Methods Hash Code Calculate

List of utility methods to do Hash Code Calculate

Description

The list of methods to do Hash Code Calculate are organized into topic(s).

Method

inthash(int aSeed, Object aObject)
Hash code for an Object.
int result = aSeed;
if (aObject == null) {
    result = hash(result, 0);
} else if (!isArray(aObject)) {
    result = hash(result, aObject.hashCode());
} else {
    int length = Array.getLength(aObject);
    for (int idx = 0; idx < length; ++idx) {
...
inthashCodeFor(Object... aFields)
Return the hash code in a single step, using all significant fields passed in an Object sequence parameter.
int result = HASH_SEED;
for (Object field : aFields) {
    result = hash(result, field);
return result;