Share via


Boolean.HashCode(Boolean) Method

Definition

Returns a hash code for a boolean value; compatible with Boolean.hashCode().

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

Parameters

value
Boolean

the value to hash

Returns

a hash code value for a boolean value.

Attributes

Remarks

Returns a hash code for a boolean value; compatible with Boolean.hashCode().

Added in 1.8.

Java documentation for java.lang.Boolean.hashCode(boolean).

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