다음을 통해 공유


URLStreamHandler.HashCode(URL) Method

Definition

Provides the default hash calculation.

[Android.Runtime.Register("hashCode", "(Ljava/net/URL;)I", "GetHashCode_Ljava_net_URL_Handler")]
protected virtual int HashCode (Java.Net.URL? u);
[<Android.Runtime.Register("hashCode", "(Ljava/net/URL;)I", "GetHashCode_Ljava_net_URL_Handler")>]
abstract member HashCode : Java.Net.URL -> int
override this.HashCode : Java.Net.URL -> int

Parameters

u
URL

a URL object

Returns

an int suitable for hash table indexing

Attributes

Remarks

Provides the default hash calculation. May be overidden by handlers for other protocols that have different requirements for hashCode calculation.

Added in 1.3.

Java documentation for java.net.URLStreamHandler.hashCode(java.net.URL).

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