Share via


Integer.HashCode(Int32) Method

Definition

Returns a hash code for an int value; compatible with Integer.hashCode().

[Android.Runtime.Register("hashCode", "(I)I", "", ApiSince=24)]
public static int HashCode (int value);
[<Android.Runtime.Register("hashCode", "(I)I", "", ApiSince=24)>]
static member HashCode : int -> int

Parameters

value
Int32

the value to hash

Returns

a hash code value for an int value.

Attributes

Remarks

Returns a hash code for an int value; compatible with Integer.hashCode().

Added in 1.8.

Java documentation for java.lang.Integer.hashCode(int).

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to