Språk

Permission.GetHashCode Method

Definition

Returns the hash code value for this Permission object.

[Android.Runtime.Register("hashCode", "()I", "GetGetHashCodeHandler")]
public abstract int GetHashCode();
[<Android.Runtime.Register("hashCode", "()I", "GetGetHashCodeHandler")>]
override this.GetHashCode : unit -> int

Returns

a hash code value for this object.

Attributes

Remarks

Returns the hash code value for this Permission object. The required hashCode behavior for Permission Objects is the following: Whenever it is invoked on the same Permission object more than once during an execution of a Java application, the hashCode method must consistently return the same integer. This integer need not remain consistent from one execution of an application to another execution of the same application; If two Permission objects are equal according to the equals method, then calling the hashCode method on each of the two Permission objects must produce the same integer result.

Java reference for java.security.Permission.hashCode.

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