LangUtils.HashCode Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
| Name | Description |
|---|---|
| HashCode(Int32, Object) |
Combines a seed and an object's hash code. |
| HashCode(Int32, Boolean) |
Combines a seed and a Boolean value. |
| HashCode(Int32, Int32) |
Combines a seed and a hash code. |
HashCode(Int32, Object)
Combines a seed and an object's hash code.
[Android.Runtime.Register("hashCode", "(ILjava/lang/Object;)I", "")]
public static int HashCode(int seed, Java.Lang.Object? obj);
[<Android.Runtime.Register("hashCode", "(ILjava/lang/Object;)I", "")>]
static member HashCode : int * Java.Lang.Object -> int
Parameters
- seed
- Int32
The accumulated hash code.
- obj
- Object
The object whose hash code is combined; null contributes zero.
Returns
The combined hash code.
- Attributes
Remarks
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
HashCode(Int32, Boolean)
Combines a seed and a Boolean value.
[Android.Runtime.Register("hashCode", "(IZ)I", "")]
public static int HashCode(int seed, bool b);
[<Android.Runtime.Register("hashCode", "(IZ)I", "")>]
static member HashCode : int * bool -> int
Parameters
- seed
- Int32
The accumulated hash code.
- b
- Boolean
The Boolean value, represented as one when true and zero when false.
Returns
The combined hash code.
- Attributes
Remarks
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
HashCode(Int32, Int32)
Combines a seed and a hash code.
[Android.Runtime.Register("hashCode", "(II)I", "")]
public static int HashCode(int seed, int hashcode);
[<Android.Runtime.Register("hashCode", "(II)I", "")>]
static member HashCode : int * int -> int
Parameters
- seed
- Int32
The accumulated hash code.
- hashcode
- Int32
The hash code to combine.
Returns
The result of multiplying seed by HashOffset and adding hashcode.
- Attributes
Remarks
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.