Java.Util.Arrays.HashCode Method
Returns a hash code based on the contents of the given array.

Syntax

[Android.Runtime.Register("hashCode", "([I)I", "")]
public static int HashCode (int[] array)

Parameters

array
the array whose hash code to compute.

Returns

Documentation for this section has not yet been entered.

Remarks

Returns a hash code based on the contents of the given array. For any two not-null int arrays a and b, if Arrays.equals(a, b) returns true, it means that the return value of Arrays.hashCode(a) equals Arrays.hashCode(b).

The value returned by this method is the same value as the IList.GetHashCode method which is invoked on a Java.Util.IList containing a sequence of Java.Lang.Integer instances representing the elements of array in the same order. If the array is null, the return value is 0.

[Android Documentation]

Requirements

Namespace: Java.Util
Assembly: Mono.Android (in Mono.Android.dll)
Assembly Versions: 0.0.0.0
Since: Added in API level 1