Partager via


URLStreamHandler.HostsEqual(URL, URL) Method

Definition

Compares the host components of two URLs.

[Android.Runtime.Register("hostsEqual", "(Ljava/net/URL;Ljava/net/URL;)Z", "GetHostsEqual_Ljava_net_URL_Ljava_net_URL_Handler")]
protected virtual bool HostsEqual (Java.Net.URL? u1, Java.Net.URL? u2);
[<Android.Runtime.Register("hostsEqual", "(Ljava/net/URL;Ljava/net/URL;)Z", "GetHostsEqual_Ljava_net_URL_Ljava_net_URL_Handler")>]
abstract member HostsEqual : Java.Net.URL * Java.Net.URL -> bool
override this.HostsEqual : Java.Net.URL * Java.Net.URL -> bool

Parameters

u1
URL

the URL of the first host to compare

u2
URL

the URL of the second host to compare

Returns

true if and only if they are equal, false otherwise.

Attributes

Remarks

Compares the host components of two URLs.

Added in 1.3.

Java documentation for java.net.URLStreamHandler.hostsEqual(java.net.URL, 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