Java.Lang.Annotation.IAnnotation.GetHashCode Method
Returns the hash code of this annotation.

Syntax

[Android.Runtime.Register("hashCode", "()I", "GetGetHashCodeHandler:Java.Lang.Annotation.IAnnotationInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")]
public int GetHashCode ()

Returns

Documentation for this section has not yet been entered.

Remarks

Returns the hash code of this annotation. The hash code is determined according to the following rules:

  • The hash code of an annotation is the sum of the hash codes of its annotation members.
  • The hash code of an annotation member is calculated as (0x7f * n.hashCode()) ^ v.hashCode()), where n is the name of the member (as a String) and v its value.
  • The hash code for a primitive member value is determined using the corresponding wrapper type. For example, Integer.valueOf(v).hashCode() is used for an int value v.
  • The hash code for an array member value v is determined using the corresponding hashCode(v) helper function in Java.Util.Arrays.
  • The hash code for all other member values is determined by simply calling their hashCode method.

[Android Documentation]

Requirements

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